im.pidgin.pidgin: 91746962ac5f36dd22a2e6bbbf858aaa429af27e
datallah at pidgin.im
datallah at pidgin.im
Wed Dec 12 14:20:45 EST 2007
-----------------------------------------------------------------
Revision: 91746962ac5f36dd22a2e6bbbf858aaa429af27e
Ancestor: cff05fbceab1d88163770d13a4c7a6116bdeb8ee
Author: datallah at pidgin.im
Date: 2007-12-12T19:15:01
Branch: im.pidgin.pidgin
Modified files:
libpurple/protocols/simple/sipmsg.c
ChangeLog:
Fix #4345 by ignoring a malformed message.
-------------- next part --------------
============================================================
--- libpurple/protocols/simple/sipmsg.c 60021dd8200e0ea65ee3e0c9a4db915fa96176be
+++ libpurple/protocols/simple/sipmsg.c b35e6387902fa90429664edb9b52a1dbfdbae098
@@ -45,7 +45,10 @@ struct sipmsg *sipmsg_parse_msg(const gc
line = g_strndup(msg, tmp - msg);
smsg = sipmsg_parse_header(line);
- smsg->body = g_strdup(tmp + 4);
+ if(smsg != NULL)
+ smsg->body = g_strdup(tmp + 4);
+ else
+ purple_debug_error("SIMPLE", "No header parsed from line: %s\n", line);
g_free(line);
return smsg;
More information about the Commits
mailing list