# HG changeset patch # User Paul Aurich # Date 1248158875 0 # Node ID b32f476d9e354d6d834ef8ed816badcec5485b74 # Parent e52e7ddb0cb2b988a96c013205c92b7bd7c22493 Clear out the fd when we pass it off to the SSL subsystem Prevents an invalid fd error when STARTTLS fails. diff -r e52e7ddb0cb2 -r b32f476d9e35 libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Tue Jul 21 05:33:43 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Tue Jul 21 06:47:55 2009 +0000 @@ -699,6 +699,8 @@ js->gc->inpa = 0; js->gsc = purple_ssl_connect_with_host_fd(js->gc->account, js->fd, jabber_login_callback_ssl, jabber_ssl_connect_failure, js->certificate_CN, js->gc); + /* The fd is no longer our concern */ + js->fd = -1; } static gboolean jabber_login_connect(JabberStream *js, const char *domain, const char *host, int port,