# HG changeset patch # User Richard Laager # Date 1141680746 0 # Node ID b2efa1432708bece74baeb8df275d702b35501b8 # Parent 2a12a59070e290baea40860e925859e6849f583c [gaim-migrate @ 15783] Dereferencing the gc pointer to get proto_data before the gc NULL check. Resolves CID 72 committer: Tailor Script diff -r 2a12a59070e2 -r b2efa1432708 src/protocols/silc/ops.c --- 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: