changeset 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 5e41c817dfa2
children 0317ad172e8d
files src/protocols/msn/slp.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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;