im.pidgin.pidgin: a29666fd1b9fb1eda082e5ed58e5ad2cbd2dfc0f

evands at pidgin.im evands at pidgin.im
Tue Dec 18 18:00:45 EST 2007


-----------------------------------------------------------------
Revision: a29666fd1b9fb1eda082e5ed58e5ad2cbd2dfc0f
Ancestor: e4025d1861da43abe2d5a41c04944203764b1133
Author: evands at pidgin.im
Date: 2007-12-18T22:57:55
Branch: im.pidgin.pidgin

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

ChangeLog: 

Last minute 'cleanup' actually resulted in breakage on my cram-md5 commit. Fixed it.

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/auth.c	a4c3673cdf3aaba368ea3fa8aaf4206452f3f7f2
+++ libpurple/protocols/jabber/auth.c	2684fad0a6124ff69816fe569c83582fa9579ce1
@@ -690,6 +690,10 @@ static void auth_old_cb(JabberStream *js
 			char h[17], *p;
 			int i;
 
+			challenge = xmlnode_get_attrib(xmlnode_get_child(query, "crammd5"), "challenge");
+			auth_hmac_md5(challenge, strlen(challenge), pw, strlen(pw), &digest);
+
+			/* Create the response query */
 			iq = jabber_iq_new_query(js, JABBER_IQ_SET, "jabber:iq:auth");
 			query = xmlnode_get_child(iq->node, "query");
 
@@ -699,8 +703,6 @@ static void auth_old_cb(JabberStream *js
 			xmlnode_insert_data(x, js->user->resource, -1);
 
 			x = xmlnode_new_child(query, "crammd5");
-			challenge = xmlnode_get_attrib(xmlnode_get_child(query, "crammd5"), "challenge");
-			auth_hmac_md5(challenge, strlen(challenge), pw, strlen(pw), &digest);
 
 			/* Translate the digest to a hexadecimal notation */
 			p = h;


More information about the Commits mailing list