Mercurial > pidgin.yaz
comparison src/protocols/jabber/jabber.c @ 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 | 6d0d4e9149b9 |
children | faa491042c66 |
comparison
equal
deleted
inserted
replaced
6767:926d539938ca | 6768:d6b8bf263903 |
---|---|
708 GaimInputCondition cond) | 708 GaimInputCondition cond) |
709 { | 709 { |
710 static char buf[4096]; | 710 static char buf[4096]; |
711 int len; | 711 int len; |
712 GaimConnection *gc = data; | 712 GaimConnection *gc = data; |
713 struct jabber_data *jd = gc->proto_data; | 713 struct jabber_data *jd; |
714 gjconn gjc = jd->gjc; | 714 gjconn gjc; |
715 | |
716 | |
717 if (!g_list_find(gaim_connections_get_all(), gc)) { | |
718 gaim_ssl_close(gsc); | |
719 return; | |
720 } | |
721 | |
722 jd = gc->proto_data; | |
723 gjc= jd->gjc; | |
715 | 724 |
716 if (!gjc || gjc->state == JCONN_STATE_OFF) | 725 if (!gjc || gjc->state == JCONN_STATE_OFF) |
717 return; | 726 return; |
718 | 727 |
719 if((len = gaim_ssl_read(gsc, buf, sizeof(buf) -1)) > 0) { | 728 if((len = gaim_ssl_read(gsc, buf, sizeof(buf) -1)) > 0) { |