Mercurial > pidgin.yaz
comparison libpurple/protocols/mxit/mxit.c @ 30721: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 | 08d9cdac2b3c |
children | a8cc50c2279f 5deb38200f62 |
comparison
equal
deleted
inserted
replaced
30720:8c586dbcae2d | 30721:bcc196eb47c2 |
---|---|
89 /* find the account */ | 89 /* find the account */ |
90 account = purple_accounts_find( parts[1], parts[2] ); | 90 account = purple_accounts_find( parts[1], parts[2] ); |
91 if ( !account ) | 91 if ( !account ) |
92 goto skip; | 92 goto skip; |
93 con = purple_account_get_connection( account ); | 93 con = purple_account_get_connection( account ); |
94 if ( !con ) | |
95 goto skip; | |
94 | 96 |
95 /* determine if it's a command-response to send */ | 97 /* determine if it's a command-response to send */ |
96 is_command = g_str_has_prefix( parts[4], "::type=reply|" ); | 98 is_command = g_str_has_prefix( parts[4], "::type=reply|" ); |
97 | 99 |
98 /* send click message back to MXit */ | 100 /* send click message back to MXit */ |