pidgin: 33e2a755: NULL out js->expected_rspauth, so it doe...

resiak at pidgin.im resiak at pidgin.im
Fri May 23 11:40:48 EDT 2008


-----------------------------------------------------------------
Revision: 33e2a75561ac894e2186354bd7e3d509b513c366
Ancestor: 43973692751b7c4e1375e090365f75a148798aed
Author: resiak at pidgin.im
Date: 2008-05-23T14:58:39
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/33e2a75561ac894e2186354bd7e3d509b513c366

Modified files:
        libpurple/protocols/jabber/auth.c

ChangeLog: 

NULL out js->expected_rspauth, so it doesn't get double-freed in jabber_close().
It is still freed in jabber_close() if not NULL, in case the challenge-response
had not completed when the connection is closed.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/auth.c	ed4bff4356c8115d833b6b4bd31c54a0c8bcf95e
+++ libpurple/protocols/jabber/auth.c	6f8016a37a60e2225474bb832132cc9ace0e2413
@@ -945,6 +945,7 @@ jabber_auth_handle_challenge(JabberStrea
 					_("Invalid challenge from server"));
 			}
 			g_free(js->expected_rspauth);
+			js->expected_rspauth = NULL;
 		} else {
 			/* assemble a response, and send it */
 			/* see RFC 2831 */


More information about the Commits mailing list