changeset 23598:2a4341e3d2da

Avoid a crash in OIM processing if the request was cancelled outside of the MSN code. Can be triggered by an invalid certificate, for example. Fixes #6345.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 17 Jul 2008 04:52:32 +0000
parents e069c16db597
children ab70eae012f5
files libpurple/protocols/msn/oim.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/oim.c	Thu Jul 17 03:23:59 2008 +0000
+++ b/libpurple/protocols/msn/oim.c	Thu Jul 17 04:52:32 2008 +0000
@@ -138,6 +138,9 @@
 	xmlnode *fault = NULL;
 	xmlnode *faultcode = NULL;
 
+	if (response == NULL)
+		return;
+
 	fault = xmlnode_get_child(response->xml, "Body/Fault");
 	if (fault)
 		faultcode = xmlnode_get_child(fault, "faultcode");