comparison libpurple/protocols/simple/simple.c @ 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 7d07bb66f70b
children 222be065ce6e
comparison
equal deleted inserted replaced
24524:ef70bcdae73f 24525:dea69e5e3427
1053 if(!contenttype || !strncmp(contenttype, "text/plain", 10) || !strncmp(contenttype, "text/html", 9)) { 1053 if(!contenttype || !strncmp(contenttype, "text/plain", 10) || !strncmp(contenttype, "text/html", 9)) {
1054 serv_got_im(sip->gc, from, msg->body, 0, time(NULL)); 1054 serv_got_im(sip->gc, from, msg->body, 0, time(NULL));
1055 send_sip_response(sip->gc, msg, 200, "OK", NULL); 1055 send_sip_response(sip->gc, msg, 200, "OK", NULL);
1056 found = TRUE; 1056 found = TRUE;
1057 } 1057 }
1058 if(!strncmp(contenttype, "application/im-iscomposing+xml", 30)) { 1058 else if(!strncmp(contenttype, "application/im-iscomposing+xml", 30)) {
1059 xmlnode *isc = xmlnode_from_str(msg->body, msg->bodylen); 1059 xmlnode *isc = xmlnode_from_str(msg->body, msg->bodylen);
1060 xmlnode *state; 1060 xmlnode *state;
1061 gchar *statedata; 1061 gchar *statedata;
1062 1062
1063 if(!isc) { 1063 if(!isc) {