# HG changeset patch # User Sulabh Mahajan # Date 1246619615 0 # Node ID fd52b7a547e488865554f335d72cfb38467fa32c # Parent c0075538109b9e8450a116d5386a0e1a7c85a02b 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. diff -r c0075538109b -r fd52b7a547e4 libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Fri Jul 03 09:05:51 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Fri Jul 03 11:13:35 2009 +0000 @@ -1769,6 +1769,8 @@ #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="));