changeset 24525:dea69e5e3427

Fix a NULL pointer deref. Fixes #7624.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 02 Dec 2008 03:28:10 +0000
parents ef70bcdae73f
children 222be065ce6e
files libpurple/protocols/simple/simple.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/simple/simple.c	Tue Dec 02 02:06:19 2008 +0000
+++ b/libpurple/protocols/simple/simple.c	Tue Dec 02 03:28:10 2008 +0000
@@ -1055,7 +1055,7 @@
 		send_sip_response(sip->gc, msg, 200, "OK", NULL);
 		found = TRUE;
 	}
-	if(!strncmp(contenttype, "application/im-iscomposing+xml", 30)) {
+	else if(!strncmp(contenttype, "application/im-iscomposing+xml", 30)) {
 		xmlnode *isc = xmlnode_from_str(msg->body, msg->bodylen);
 		xmlnode *state;
 		gchar *statedata;