*** Plucked rev 6b28d34173486d3e4f658f62a61c93b56a489cb0 (sulabh@soc.pidgin.im): release-2.5.8

Thu, 25 Jun 2009 23:31:53 +0000

author
John Bailey <rekkanoryo@rekkanoryo.org>
date
Thu, 25 Jun 2009 23:31:53 +0000
branch
release-2.5.8
changeset 25776
664ded49d52f
parent 25775
90f13edd721a
child 25777
d44beb250a69

*** Plucked rev 6b28d34173486d3e4f658f62a61c93b56a489cb0 (sulabh@soc.pidgin.im):
This should prevent pidgin from crashing, as reported by the ticket #9426.

libpurple/protocols/yahoo/yahoo_picture.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/yahoo/yahoo_picture.c	Thu Jun 25 23:30:58 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo_picture.c	Thu Jun 25 23:31:53 2009 +0000
@@ -110,6 +110,9 @@
 		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;

mercurial