Mercurial > pidgin.yaz
changeset 21824:189abce087ab
Fix #4345 by ignoring a malformed message.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 12 Dec 2007 19:15:01 +0000 |
parents | a53f4b1813df |
children | 9bdfeeea9145 |
files | libpurple/protocols/simple/sipmsg.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/simple/sipmsg.c Wed Dec 12 01:53:00 2007 +0000 +++ b/libpurple/protocols/simple/sipmsg.c Wed Dec 12 19:15:01 2007 +0000 @@ -45,7 +45,10 @@ 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;