Mercurial > pidgin
diff src/protocols/simple/sipmsg.c @ 11398:90290f579926
[gaim-migrate @ 13630]
a simple fix for a bug found by Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
| author | Thomas Butter <tbutter> |
|---|---|
| date | Wed, 31 Aug 2005 22:27:16 +0000 |
| parents | e5bbe5070e04 |
| children | 617e67e1c985 |
line wrap: on
line diff
--- a/src/protocols/simple/sipmsg.c Wed Aug 31 21:18:27 2005 +0000 +++ b/src/protocols/simple/sipmsg.c Wed Aug 31 22:27:16 2005 +0000 @@ -38,6 +38,7 @@ struct sipmsg *sipmsg_parse_msg(gchar *msg) { char *tmp = strstr(msg, "\r\n\r\n"); struct sipmsg *smsg; + if(!tmp) return NULL; tmp[0]=0; smsg = sipmsg_parse_header(msg); tmp[0]='\r';
