# HG changeset patch # User Richard Laager # Date 1141680926 0 # Node ID 0a3c968b07dc64b3bef560636726c14bc15597f7 # Parent b2efa1432708bece74baeb8df275d702b35501b8 [gaim-migrate @ 15784] Resolve CID 71 Also, add a check for gc == NULL. committer: Tailor Script diff -r b2efa1432708 -r 0a3c968b07dc src/protocols/silc/silc.c --- a/src/protocols/silc/silc.c Mon Mar 06 21:32:26 2006 +0000 +++ b/src/protocols/silc/silc.c Mon Mar 06 21:35:26 2006 +0000 @@ -144,13 +144,16 @@ silcgaim_login_connected(gpointer data, gint source, GaimInputCondition cond) { GaimConnection *gc = data; - SilcGaim sg = gc->proto_data; + SilcGaim sg; SilcClient client; SilcClientConnection conn; - GaimAccount *account = sg->account; + GaimAccount *account; SilcClientConnectionParams params; const char *dfile; + g_return_if_fail(gc != NULL); + sg = gc->proto_data; + if (source < 0) { gaim_connection_error(gc, _("Connection failed")); return; @@ -160,6 +163,7 @@ return; client = sg->client; + account = sg->account; if (!g_list_find(gaim_connections_get_all(), gc)) { close(source);