pidgin: b4a95ea6: Ignore SLP invites if they do not contai...

qulogic at pidgin.im qulogic at pidgin.im
Tue Sep 1 19:35:48 EDT 2009


-----------------------------------------------------------------
Revision: b4a95ea62b81a06ffc1993912471c511b786efdd
Ancestor: 6d3fc30a0a0a379281efc5a6872a9c1d7c24c650
Author: qulogic at pidgin.im
Date: 2009-09-01T23:06:25
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/b4a95ea62b81a06ffc1993912471c511b786efdd

Modified files:
        libpurple/protocols/msn/slp.c

ChangeLog: 

Ignore SLP invites if they do not contain all the required fields. The
latest development KMess client appears to send a MsnObject that's just
full of NULL's, triggering this crash.

Fixes #10159.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slp.c	d4d55a95ef034912d98e641c87d391961de24a7f
+++ libpurple/protocols/msn/slp.c	0b5fc641e7da6096b1bd8f18e10ffa02cd65c4bc
@@ -708,7 +708,15 @@ msn_slp_sip_recv(MsnSlpLink *slplink, co
 
 		content = get_token(body, "\r\n\r\n", NULL);
 
-		got_invite(slpcall, branch, content_type, content);
+		if (branch && content_type && content)
+		{
+			got_invite(slpcall, branch, content_type, content);
+		}
+		else
+		{
+			msn_slpcall_destroy(slpcall);
+			slpcall = NULL;
+		}
 
 		g_free(branch);
 		g_free(content_type);


More information about the Commits mailing list