Mercurial > pidgin
diff src/protocols/silc/ops.c @ 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 | b704e60fe5de |
| children | 1118b6fc3206 |
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:
