Mercurial > pidgin.yaz
changeset 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 | d530188f04b8 |
children | 48244c196228 |
files | src/protocols/simple/sipmsg.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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';