Sun, 07 Sep 2003 02:14:54 +0000
[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;