pidgin.mxit: 82e7f1b7: If a link is clicked in a conversation, ...

andrew.victor at mxit.com andrew.victor at mxit.com
Tue Jul 20 09:52:21 EDT 2010


----------------------------------------------------------------------
Revision: 82e7f1b7c8af5634ca7519af59901321eab7e8dc
Parent:   f447a1b5f9e414e5e9c976218c006288f967e565
Author:   andrew.victor at mxit.com
Date:     07/20/10 09:44:56
Branch:   im.pidgin.pidgin.mxit
URL: http://d.pidgin.im/viewmtn/revision/info/82e7f1b7c8af5634ca7519af59901321eab7e8dc

Changelog: 

If a link is clicked in a conversation, and connection to server happens to have
been dropped then a SIGSEGV could occur.


Changes against parent f447a1b5f9e414e5e9c976218c006288f967e565

  patched  libpurple/protocols/mxit/mxit.c

-------------- next part --------------
============================================================
--- libpurple/protocols/mxit/mxit.c	db00bf196734698de66743ba6477d6482a3b4739
+++ libpurple/protocols/mxit/mxit.c	30e852a0681962e9cec0b05e6db5b8c75d3eeeb5
@@ -91,6 +91,8 @@ static void* mxit_link_click( const char
 	if ( !account )
 		goto skip;
 	con = purple_account_get_connection( account );
+	if ( !con )
+		goto skip;
 
 	/* determine if it's a command-response to send */
 	is_command = g_str_has_prefix( parts[4], "::type=reply|" );


More information about the Commits mailing list