pidgin: d8be6664: Make sure the room name and the buddy wh...

markdoliner at pidgin.im markdoliner at pidgin.im
Wed Oct 21 18:31:26 EDT 2009


-----------------------------------------------------------------
Revision: d8be6664f7fa86101932a504becbfe1e313dc8f8
Ancestor: ef394de322deb70bc777c60b6d072cf7bab18c03
Author: markdoliner at pidgin.im
Date: 2009-10-21T22:24:34
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d8be6664f7fa86101932a504becbfe1e313dc8f8

Modified files:
        libpurple/server.c

ChangeLog: 

Make sure the room name and the buddy who invited you are non-null

-------------- next part --------------
============================================================
--- libpurple/server.c	11b25e4324f4a3fb638c500c9870cc6a435426d4
+++ libpurple/server.c	06c765280106b4e05de9e4f0b0273c98bf1854f3
@@ -786,6 +786,9 @@ void serv_got_chat_invite(PurpleConnecti
 	struct chat_invite_data *cid;
 	int plugin_return;
 
+	g_return_if_fail(name != NULL);
+	g_return_if_fail(who != NULL);
+
 	account = purple_connection_get_account(gc);
 	if (!purple_privacy_check(account, who)) {
 		purple_signal_emit(purple_conversations_get_handle(), "chat-invite-blocked",


More information about the Commits mailing list