# HG changeset patch # User Evan Schoenberg # Date 1171342849 0 # Node ID 66dc2367b137a7dbdd496607e63ad2c78b667f07 # Parent b740309318888d756fe70b2f9aa9baf061a30d0a If jabber_ssl_connect_failure() is called because a connect attempt fails, but the user has already canceled the attempt by signing the account offline, this would previously crash. It now does not. diff -r b74030931888 -r 66dc2367b137 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Sat Feb 10 01:10:15 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Tue Feb 13 05:00:49 2007 +0000 @@ -475,8 +475,13 @@ gpointer data) { GaimConnection *gc = data; - JabberStream *js = gc->proto_data; + JabberStream *js; + /* If the connection is already disconnected, we don't need to do anything else */ + if(!GAIM_CONNECTION_IS_VALID(gc)) + return; + + js = gc->proto_data; js->gsc = NULL; switch(error) {