Mercurial > pidgin
changeset 30290:bcc196eb47c2
If a link is clicked in a conversation, and connection to server happens to have
been dropped then a SIGSEGV could occur.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 20 Jul 2010 13:44:56 +0000 |
parents | 8c586dbcae2d |
children | 8e2da15b17cd fe072dddc42c |
files | libpurple/protocols/mxit/mxit.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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|" );