If a link is clicked in a conversation, and connection to server happens to have mxit

Tue, 20 Jul 2010 13:44:56 +0000

author
Andrew Victor <andrew.victor@mxit.com>
date
Tue, 20 Jul 2010 13:44:56 +0000
branch
mxit
changeset 30523
2629bf405a36
parent 30522
5b84b44ed654
child 30524
bbabed2b8de9
child 30551
b8f6a524a048

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

libpurple/protocols/mxit/mxit.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/mxit/mxit.c	Tue Jul 20 09:46:28 2010 +0000
+++ b/libpurple/protocols/mxit/mxit.c	Tue Jul 20 13:44:56 2010 +0000
@@ -91,6 +91,8 @@
 	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|" );

mercurial