pidgin: e61443cb: I just saw a crash where im was null her...

markdoliner at pidgin.im markdoliner at pidgin.im
Thu Aug 13 22:54:51 EDT 2009


-----------------------------------------------------------------
Revision: e61443cb17f6d03c10dddfe54c499d057a9ca362
Ancestor: 70d69397ed952b26b453423c381c70d6783eb66d
Author: markdoliner at pidgin.im
Date: 2009-08-13T17:46:06
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/e61443cb17f6d03c10dddfe54c499d057a9ca362

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

ChangeLog: 

I just saw a crash where im was null here.  No idea how to reproduce it

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c	e455d893df61894cb972de575e11f0d7975a6daa
+++ libpurple/protocols/yahoo/libymsg.c	26a3613aa90c28544d1984d530d29412c6a1e09c
@@ -971,7 +971,7 @@ static void yahoo_process_message(Purple
 
 	/* disconnect the peer if connected through p2p and sends wrong value for session id */
 	if( (pkt_type == YAHOO_PKT_TYPE_P2P) && (val_11 != yd->session_id) ) {
-		purple_debug_warning("yahoo","p2p: %s sent us message with wrong session id. Disconnecting p2p connection to peer\n", im->from);
+		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)");
 		/* remove from p2p connection lists, also calls yahoo_p2p_disconnect_destroy_data */
 		g_hash_table_remove(yd->peers, im->from);
 		return;


More information about the Commits mailing list