[gaim-migrate @ 7305]

Sun, 07 Sep 2003 02:14:54 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Sun, 07 Sep 2003 02:14:54 +0000
changeset 6768
64384a76f515
parent 6767
88a8313e2b16
child 6769
1fc374f1fd5d

[gaim-migrate @ 7305]
this might fix the weird jabber ssl crash

src/protocols/jabber/jabber.c file | annotate | diff | comparison | revisions
--- a/src/protocols/jabber/jabber.c	Sun Sep 07 01:06:09 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Sun Sep 07 02:14:54 2003 +0000
@@ -710,8 +710,17 @@
 	static char buf[4096];
 	int len;
 	GaimConnection *gc = data;
-	struct jabber_data *jd = gc->proto_data;
-	gjconn gjc = jd->gjc;
+	struct jabber_data *jd;
+	gjconn gjc;
+
+
+	if (!g_list_find(gaim_connections_get_all(), gc)) {
+		gaim_ssl_close(gsc);
+		return;
+	}
+
+	jd = gc->proto_data;
+	gjc= jd->gjc;
 
 	if (!gjc || gjc->state == JCONN_STATE_OFF)
 		return;

mercurial