# HG changeset patch # User Ethan Blanton # Date 1092062812 0 # Node ID eb9c345d45a32c661258014d637788aca3b4b9b0 # Parent 3419488d6d93de666f2541ce4c62fe896f62e1fd [gaim-migrate @ 10593] Stu says this makes things ... better. committer: Tailor Script diff -r 3419488d6d93 -r eb9c345d45a3 src/protocols/silc/silc.c --- a/src/protocols/silc/silc.c Mon Aug 09 04:02:13 2004 +0000 +++ b/src/protocols/silc/silc.c Mon Aug 09 14:46:52 2004 +0000 @@ -123,7 +123,7 @@ { GaimConnection *gc = data; SilcGaim sg = gc->proto_data; - SilcClient client = sg->client; + SilcClient client; SilcClientConnection conn; GaimAccount *account = sg->account; SilcClientConnectionParams params; @@ -133,6 +133,12 @@ gaim_connection_error(gc, _("Connection failed")); return; } + + if (sg == NULL) + return; + + client = sg->client; + if (!g_list_find(gaim_connections_get_all(), gc)) { close(source); g_source_remove(sg->scheduler);