Mercurial > pidgin
changeset 13408:b2efa1432708
[gaim-migrate @ 15783]
Dereferencing the gc pointer to get proto_data before the gc NULL check.
Resolves CID 72
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 06 Mar 2006 21:32:26 +0000 |
parents | 2a12a59070e2 |
children | 0a3c968b07dc |
files | src/protocols/silc/ops.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/silc/ops.c Mon Mar 06 21:28:30 2006 +0000 +++ b/src/protocols/silc/ops.c Mon Mar 06 21:32:26 2006 +0000 @@ -1669,14 +1669,14 @@ SilcClientConnectionStatus status) { GaimConnection *gc = client->application; - SilcGaim sg = gc->proto_data; + SilcGaim sg; gboolean reject_watch, block_invites, block_ims; - if (!gc) { - sg->conn = NULL; + if (gc == NULL) { silc_client_close_connection(client, conn); return; } + sg = gc->proto_data; switch (status) { case SILC_CLIENT_CONN_SUCCESS: