pidgin: ca31ea16: Gadu-Gadu: check for NULL pointer before...
tomkiewicz at cpw.pidgin.im
tomkiewicz at cpw.pidgin.im
Sat Oct 8 19:10:27 EDT 2011
----------------------------------------------------------------------
Revision: ca31ea1640fbc287e7b420c59c08a7477907d66e
Parent: 4cc28a24626e194d1d3ee46451586ff31a665317
Author: tomkiewicz at cpw.pidgin.im
Date: 10/08/11 19:07:45
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/ca31ea1640fbc287e7b420c59c08a7477907d66e
Changelog:
Gadu-Gadu: check for NULL pointer before logging system messages.
Changes against parent 4cc28a24626e194d1d3ee46451586ff31a665317
patched libpurple/protocols/gg/gg.c
-------------- next part --------------
============================================================
--- libpurple/protocols/gg/gg.c d2e1ecc208f3647960cf622084719cd310b97b77
+++ libpurple/protocols/gg/gg.c 81f7b30f636dad0f71f3ab42697010e5e3fd6fe2
@@ -1985,9 +1985,14 @@ static void ggp_async_login_handler(gpoi
break;
case GG_EVENT_MSG:
if (ev->event.msg.sender == 0)
+ {
+ if (ev->event.msg.message == NULL)
+ break;
+
/* system messages are mostly ads */
purple_debug_info("gg", "System message:\n%s\n",
ev->event.msg.message);
+ }
else
purple_debug_warning("gg", "GG_EVENT_MSG: message from user %u "
"unexpected while connecting:\n%s\n",
More information about the Commits
mailing list