# HG changeset patch # User Mark Doliner # Date 1156125955 0 # Node ID 4975f529d90925fb276d1c384897bcdc443e44f5 # Parent c0d06ccd038b4e633199b81b968c37a1772a3825 [gaim-migrate @ 16930] And this needs to be done before calling gaim_connection_error(). The IRC PPRL should only free the sslconn if the connection is canceled half-way through, or if the connection has completed and the user signs offline. If the connection fails normally then sslconn.c is responsible for destroying the sslconn. committer: Tailor Script diff -r c0d06ccd038b -r 4975f529d909 libgaim/protocols/irc/irc.c --- a/libgaim/protocols/irc/irc.c Mon Aug 21 02:01:38 2006 +0000 +++ b/libgaim/protocols/irc/irc.c Mon Aug 21 02:05:55 2006 +0000 @@ -411,6 +411,8 @@ GaimConnection *gc = data; struct irc_conn *irc = gc->proto_data; + irc->gsc = NULL; + switch(error) { case GAIM_SSL_CONNECT_FAILED: gaim_connection_error(gc, _("Connection Failed")); @@ -419,8 +421,6 @@ gaim_connection_error(gc, _("SSL Handshake Failed")); break; } - - irc->gsc = NULL; } static void irc_close(GaimConnection *gc)