changeset 6768:d6b8bf263903

[gaim-migrate @ 7305] this might fix the weird jabber ssl crash committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 07 Sep 2003 02:14:54 +0000
parents 926d539938ca
children 4a88120d18d6
files src/protocols/jabber/jabber.c
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;