|
Tomas Bzatek |
ff85c53 |
From 54a2ed675de586102462415fce72ed28aa7e2388 Mon Sep 17 00:00:00 2001
|
|
Tomas Bzatek |
ff85c53 |
From: Tomas Bzatek <tbzatek@redhat.com>
|
|
Tomas Bzatek |
ff85c53 |
Date: Fri, 7 Aug 2009 11:29:11 +0200
|
|
Tomas Bzatek |
ff85c53 |
Subject: [PATCH] =?UTF-8?q?Bug=20589434=20=E2=80=93=20gvfsd-sftp=20crashed=20with=20SIGSEGV=20in=20strlen()?=
|
|
Tomas Bzatek |
ff85c53 |
MIME-Version: 1.0
|
|
Tomas Bzatek |
ff85c53 |
Content-Type: text/plain; charset=UTF-8
|
|
Tomas Bzatek |
ff85c53 |
Content-Transfer-Encoding: 8bit
|
|
Tomas Bzatek |
ff85c53 |
|
|
Tomas Bzatek |
ff85c53 |
Pass correct pointer to the choices struct
|
|
Tomas Bzatek |
ff85c53 |
---
|
|
Tomas Bzatek |
ff85c53 |
daemon/gvfsbackendsftp.c | 3 +--
|
|
Tomas Bzatek |
ff85c53 |
1 files changed, 1 insertions(+), 2 deletions(-)
|
|
Tomas Bzatek |
ff85c53 |
|
|
Tomas Bzatek |
ff85c53 |
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
|
|
Tomas Bzatek |
ff85c53 |
index 3b510a7..b32d11b 100644
|
|
Tomas Bzatek |
ff85c53 |
--- a/daemon/gvfsbackendsftp.c
|
|
Tomas Bzatek |
ff85c53 |
+++ b/daemon/gvfsbackendsftp.c
|
|
Tomas Bzatek |
ff85c53 |
@@ -1034,7 +1034,6 @@ handle_login (GVfsBackend *backend,
|
|
Tomas Bzatek |
ff85c53 |
strstr (buffer, "Key fingerprint:") != NULL)
|
|
Tomas Bzatek |
ff85c53 |
{
|
|
Tomas Bzatek |
ff85c53 |
const gchar *choices[] = {_("Log In Anyway"), _("Cancel Login")};
|
|
Tomas Bzatek |
ff85c53 |
- const gchar *v_choices = (const gchar *)choices;
|
|
Tomas Bzatek |
ff85c53 |
const gchar *choice_string;
|
|
Tomas Bzatek |
ff85c53 |
gchar *hostname = NULL;
|
|
Tomas Bzatek |
ff85c53 |
gchar *fingerprint = NULL;
|
|
Tomas Bzatek |
ff85c53 |
@@ -1055,7 +1054,7 @@ handle_login (GVfsBackend *backend,
|
|
Tomas Bzatek |
ff85c53 |
|
|
Tomas Bzatek |
ff85c53 |
if (!g_mount_source_ask_question (mount_source,
|
|
Tomas Bzatek |
ff85c53 |
message,
|
|
Tomas Bzatek |
ff85c53 |
- &v_choices,
|
|
Tomas Bzatek |
ff85c53 |
+ (const gchar **) &choices,
|
|
Tomas Bzatek |
ff85c53 |
2,
|
|
Tomas Bzatek |
ff85c53 |
&aborted,
|
|
Tomas Bzatek |
ff85c53 |
&choice) ||
|
|
Tomas Bzatek |
ff85c53 |
--
|
|
Tomas Bzatek |
ff85c53 |
1.6.4
|
|
Tomas Bzatek |
ff85c53 |
|