Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/libymsg.c @ 28251:5f49b2dd8f9b
I just saw a crash where im was null here. No idea how to reproduce it
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 13 Aug 2009 17:46:06 +0000 |
parents | 90b471ba5282 |
children | 90d108cda54e 703b20fa6c5c |
comparison
equal
deleted
inserted
replaced
28250:55549f101140 | 28251:5f49b2dd8f9b |
---|---|
969 _("Your Yahoo! message did not get sent."), NULL); | 969 _("Your Yahoo! message did not get sent."), NULL); |
970 } | 970 } |
971 | 971 |
972 /* disconnect the peer if connected through p2p and sends wrong value for session id */ | 972 /* disconnect the peer if connected through p2p and sends wrong value for session id */ |
973 if( (pkt_type == YAHOO_PKT_TYPE_P2P) && (val_11 != yd->session_id) ) { | 973 if( (pkt_type == YAHOO_PKT_TYPE_P2P) && (val_11 != yd->session_id) ) { |
974 purple_debug_warning("yahoo","p2p: %s sent us message with wrong session id. Disconnecting p2p connection to peer\n", im->from); | 974 purple_debug_warning("yahoo","p2p: %s sent us message with wrong session id. Disconnecting p2p connection to peer\n", im ? im->from : "(im was null)"); |
975 /* remove from p2p connection lists, also calls yahoo_p2p_disconnect_destroy_data */ | 975 /* remove from p2p connection lists, also calls yahoo_p2p_disconnect_destroy_data */ |
976 g_hash_table_remove(yd->peers, im->from); | 976 g_hash_table_remove(yd->peers, im->from); |
977 return; | 977 return; |
978 } | 978 } |
979 | 979 |