changeset 9732:eb9c345d45a3

[gaim-migrate @ 10593] Stu says this makes things ... better. committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Mon, 09 Aug 2004 14:46:52 +0000
parents 3419488d6d93
children 4c5b53bf0aaa
files src/protocols/silc/silc.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);