changeset 21941:fc060adb7178

fix a double free
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 26 Dec 2007 01:19:18 +0000
parents 63ebd65857f8
children c0f6a658ad6b bac263f5afe7
files libpurple/protocols/msn/soap2.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap2.c	Tue Dec 25 23:00:27 2007 +0000
+++ b/libpurple/protocols/msn/soap2.c	Wed Dec 26 01:19:18 2007 +0000
@@ -170,6 +170,9 @@
 {
 	MsnSoapConnection *conn = data;
 
+	/* sslconn already frees the connection in case of error */
+	conn->ssl = NULL;
+
 	g_hash_table_remove(conn->session->soap_table, conn->host);
 }