changeset 27176:4c4c747112e0

This should prevent pidgin from crashing, as reported by the ticket #9426.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Thu, 25 Jun 2009 08:16:19 +0000
parents afcb1d41e557
children 39edf315e1c8 f8428553f11c
files libpurple/protocols/yahoo/yahoo_picture.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_picture.c	Thu Jun 25 03:10:46 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo_picture.c	Thu Jun 25 08:16:19 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;