[gaim-migrate @ 12638]

Sun, 08 May 2005 16:15:11 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sun, 08 May 2005 16:15:11 +0000
changeset 10907
9d159f3911f2
parent 10906
1825ffb6b495
child 10908
15694532c3c6

[gaim-migrate @ 12638]
Prevent bogus messages from causing problems

src/protocols/msn/slp.c file | annotate | diff | comparison | revisions
--- 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;

mercurial