# HG changeset patch # User Sulabh Mahajan # Date 1245917779 0 # Node ID 4c4c747112e0408071a80b0cd57afff03c11c969 # Parent afcb1d41e557064645520a9cf2e62b9a64de2016 This should prevent pidgin from crashing, as reported by the ticket #9426. diff -r afcb1d41e557 -r 4c4c747112e0 libpurple/protocols/yahoo/yahoo_picture.c --- 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;