pidgin: 6b28d341: This should prevent pidgin from crashing...

sulabh at soc.pidgin.im sulabh at soc.pidgin.im
Thu Jun 25 04:20:30 EDT 2009


-----------------------------------------------------------------
Revision: 6b28d34173486d3e4f658f62a61c93b56a489cb0
Ancestor: 67e253d9bff41f028ffc609c776f70dae52b614b
Author: sulabh at soc.pidgin.im
Date: 2009-06-25T08:16:19
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6b28d34173486d3e4f658f62a61c93b56a489cb0

Modified files:
        libpurple/protocols/yahoo/yahoo_picture.c

ChangeLog: 

This should prevent pidgin from crashing, as reported by the ticket #9426.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo_picture.c	ef6c43a5d4728b0e1da24d7fc5c6a214b208d45f
+++ libpurple/protocols/yahoo/yahoo_picture.c	678f9fe473e12b16d0bb7a750c7623f9afd11979
@@ -110,6 +110,9 @@ void yahoo_process_picture(PurpleConnect
 		l = l->next;
 	}
 
+	if (!who)
+		return;
+
 	if (!purple_privacy_check(purple_connection_get_account(gc), who)) {
 		purple_debug_info("yahoo", "Picture packet from %s dropped.\n", who);
 		return;


More information about the Commits mailing list