pidgin: 11733ca9: Fix a NULL pointer deref. Fixes #7624.

datallah at pidgin.im datallah at pidgin.im
Mon Dec 1 22:35:33 EST 2008


-----------------------------------------------------------------
Revision: 11733ca937e97ef9d8f6d295786b57849ee08eec
Ancestor: c1d44992f600877e08d67a35323d16fcacff92de
Author: datallah at pidgin.im
Date: 2008-12-02T03:28:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/11733ca937e97ef9d8f6d295786b57849ee08eec

Modified files:
        libpurple/protocols/simple/simple.c

ChangeLog: 

Fix a NULL pointer deref. Fixes #7624.

-------------- next part --------------
============================================================
--- libpurple/protocols/simple/simple.c	7c1f004831e2c7dbead9b6dc7708ff201c070467
+++ libpurple/protocols/simple/simple.c	591fc73cd300afa6883fddd2e2fb56f288ba175d
@@ -1055,7 +1055,7 @@ static void process_incoming_message(str
 		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;


More information about the Commits mailing list