[libsoup] Fix memory corruption in SoupPasswordManagerGNOME



commit 8b0f48a5b18ea066cb232506e5c5ac847567b226
Author: Dan Winship <danw gnome org>
Date:   Tue Dec 15 18:19:59 2009 +0100

    Fix memory corruption in SoupPasswordManagerGNOME
    
    Debugged by Gustavo Noronha Silva,
    https://bugzilla.gnome.org/show_bug.cgi?id=595554

 libsoup/soup-password-manager-gnome.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-password-manager-gnome.c b/libsoup/soup-password-manager-gnome.c
index d376191..ae65564 100644
--- a/libsoup/soup-password-manager-gnome.c
+++ b/libsoup/soup-password-manager-gnome.c
@@ -113,6 +113,13 @@ update_auth_for_passwords (SoupAuth *auth, SoupMessage *msg,
 		passwords = passwords->next;
 	}
 
+	uri = g_object_get_data (G_OBJECT (auth),
+				 "SoupPasswordManagerGNOME-save_password-uri");
+	if (uri) {
+		g_signal_handlers_disconnect_by_func (auth, async_save_password, uri);
+		g_signal_handlers_disconnect_by_func (auth, sync_save_password, uri);
+	}
+
 	uri = soup_uri_copy (soup_message_get_uri (msg));
 	g_signal_connect (auth, "save_password",
 			  G_CALLBACK (async ? async_save_password : sync_save_password),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]