changeset 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 cf626850031f
children ce108a92fa4e
files libpurple/protocols/msn/nexus.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/nexus.c	Mon Dec 15 04:35:27 2008 +0000
+++ b/libpurple/protocols/msn/nexus.c	Tue Dec 16 02:21:33 2008 +0000
@@ -434,6 +434,9 @@
 #endif
 	char *decrypted_data;
 
+	if (resp == NULL)
+		return;
+
 	purple_debug_info("msn", "Got Update Response for %s.\n", ticket_domains[ud->id][SSO_VALID_TICKET_DOMAIN]);
 
 	enckey = xmlnode_get_child(resp->xml, "Header/Security/DerivedKeyToken");