pidgin: 89e296ce: In case of an error we do not receive th...

sulabh at soc.pidgin.im sulabh at soc.pidgin.im
Fri Jul 3 07:31:40 EDT 2009


-----------------------------------------------------------------
Revision: 89e296ce85f6724fd51ae1efdc5883941cdf90ca
Ancestor: d6d0af3753826ea4715b3f4ca3bd41f0d63161b3
Author: sulabh at soc.pidgin.im
Date: 2009-07-03T11:13:35
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/89e296ce85f6724fd51ae1efdc5883941cdf90ca

Modified files:
        libpurple/protocols/yahoo/yahoo.c

ChangeLog: 

In case of an error we do not receive the token, and totalelements in that case is 1. This fixes the issue of not being able to set error properly.
I think that the change in code for proper processing of the chunked data created this issue. 

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c	ec0eb3761c7cff035101fbbec6d5cbcac244f1c3
+++ libpurple/protocols/yahoo/yahoo.c	2e59b1d57b87fc9881c92e9678aa978a013f5ca2
@@ -1769,6 +1769,8 @@ static void yahoo_auth16_stage1_cb(Purpl
 #else
 		while (split_data[++totalelements] != NULL);	
 #endif
+		if(totalelements == 1)
+			response_no = strtol(split_data[0], NULL, 10);
 		if(totalelements >= 2) {
 			response_no = strtol(split_data[0], NULL, 10);
 			token = g_strdup(split_data[1] + strlen("ymsgr="));


More information about the Commits mailing list