# HG changeset patch # User Elliott Sales de Andrade # Date 1251846385 0 # Node ID 5546612e70e2db038d6cb6492a71038158b2cdf9 # Parent 77423ba51dd45f41f7bb5ba9fd8fe5062be132a6 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. diff -r 77423ba51dd4 -r 5546612e70e2 libpurple/protocols/msn/slp.c --- a/libpurple/protocols/msn/slp.c Tue Sep 01 17:44:35 2009 +0000 +++ b/libpurple/protocols/msn/slp.c Tue Sep 01 23:06:25 2009 +0000 @@ -708,7 +708,15 @@ 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);