changeset 15051:f0ffd80aa196

[gaim-migrate @ 17834] I don't think these parameters are allowed to be null... it looks like it can cause crashes. See Red Hat bug #217335. Thanks to Nalin Dahyabhai for pin pointing the cause of the crash. http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217335 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 28 Nov 2006 06:59:48 +0000
parents d0f5147753dd
children 34e049e6ce10
files libgaim/protocols/jabber/auth.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/jabber/auth.c	Tue Nov 28 06:37:12 2006 +0000
+++ b/libgaim/protocols/jabber/auth.c	Tue Nov 28 06:59:48 2006 +0000
@@ -753,7 +753,9 @@
 	 * should try one more round against it
 	 */
 	if (js->sasl_state != SASL_OK) {
-		js->sasl_state = sasl_client_step(js->sasl, NULL, 0, NULL, NULL, NULL);
+		const char *c_out;
+		unsigned int clen;
+		js->sasl_state = sasl_client_step(js->sasl, NULL, 0, NULL, &c_out, &clen);
 		if (js->sasl_state != SASL_OK) {
 			/* This should never happen! */
 			gaim_connection_error(js->gc, _("Invalid response from server."));