changeset 23100:c77d66886425

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.
author Will Thompson <will.thompson@collabora.co.uk>
date Fri, 23 May 2008 14:58:39 +0000
parents 1356d75fd958
children bce10d146dd4
files libpurple/protocols/jabber/auth.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth.c	Fri May 23 13:39:22 2008 +0000
+++ b/libpurple/protocols/jabber/auth.c	Fri May 23 14:58:39 2008 +0000
@@ -945,6 +945,7 @@
 					_("Invalid challenge from server"));
 			}
 			g_free(js->expected_rspauth);
+			js->expected_rspauth = NULL;
 		} else {
 			/* assemble a response, and send it */
 			/* see RFC 2831 */