Mercurial > pidgin
diff src/protocols/msn/slp.c @ 10907:4f5fa4cc7eb4
[gaim-migrate @ 12638]
Prevent bogus messages from causing problems
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sun, 08 May 2005 16:15:11 +0000 |
parents | bda4b39a22b8 |
children | 407e47f580e4 |
line wrap: on
line diff
--- a/src/protocols/msn/slp.c Sun May 08 15:21:18 2005 +0000 +++ b/src/protocols/msn/slp.c Sun May 08 16:15:11 2005 +0000 @@ -615,6 +615,12 @@ { MsnSlpCall *slpcall; + if (body == NULL) + { + gaim_debug_warning("msn", "received bogus message\n"); + return NULL; + } + if (!strncmp(body, "INVITE", strlen("INVITE"))) { char *branch;