Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/nexus.c @ 24729:25667ca518d6
Do something sane if the response is NULL when updating contact tokens,
like say, if we were disconnected or disabled during the SOAP request.
Fixes #7792.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Tue, 16 Dec 2008 02:21:33 +0000 |
parents | 019d5ae3ad72 |
children | 6a0304f317cf |
comparison
equal
deleted
inserted
replaced
24723:cf626850031f | 24729:25667ca518d6 |
---|---|
432 #if 0 | 432 #if 0 |
433 char *decrypted_pp; | 433 char *decrypted_pp; |
434 #endif | 434 #endif |
435 char *decrypted_data; | 435 char *decrypted_data; |
436 | 436 |
437 if (resp == NULL) | |
438 return; | |
439 | |
437 purple_debug_info("msn", "Got Update Response for %s.\n", ticket_domains[ud->id][SSO_VALID_TICKET_DOMAIN]); | 440 purple_debug_info("msn", "Got Update Response for %s.\n", ticket_domains[ud->id][SSO_VALID_TICKET_DOMAIN]); |
438 | 441 |
439 enckey = xmlnode_get_child(resp->xml, "Header/Security/DerivedKeyToken"); | 442 enckey = xmlnode_get_child(resp->xml, "Header/Security/DerivedKeyToken"); |
440 while (enckey) { | 443 while (enckey) { |
441 if (g_str_equal(xmlnode_get_attrib(enckey, "Id"), "EncKey")) | 444 if (g_str_equal(xmlnode_get_attrib(enckey, "Id"), "EncKey")) |