Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/slp.c @ 28525:5546612e70e2
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.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Tue, 01 Sep 2009 23:06:25 +0000 |
parents | c9e760d350b8 |
children | 59b0c556f787 1be982612d9a |
comparison
equal
deleted
inserted
replaced
28524:77423ba51dd4 | 28525:5546612e70e2 |
---|---|
706 #endif | 706 #endif |
707 content_type = get_token(body, "Content-Type: ", "\r\n"); | 707 content_type = get_token(body, "Content-Type: ", "\r\n"); |
708 | 708 |
709 content = get_token(body, "\r\n\r\n", NULL); | 709 content = get_token(body, "\r\n\r\n", NULL); |
710 | 710 |
711 got_invite(slpcall, branch, content_type, content); | 711 if (branch && content_type && content) |
712 { | |
713 got_invite(slpcall, branch, content_type, content); | |
714 } | |
715 else | |
716 { | |
717 msn_slpcall_destroy(slpcall); | |
718 slpcall = NULL; | |
719 } | |
712 | 720 |
713 g_free(branch); | 721 g_free(branch); |
714 g_free(content_type); | 722 g_free(content_type); |
715 g_free(content); | 723 g_free(content); |
716 } | 724 } |