changeset 27984:96c38fe2cb00

Clear out the fd when we pass it off to the SSL subsystem Prevents an invalid fd error when STARTTLS fails.
author Paul Aurich <paul@darkrain42.org>
date Tue, 21 Jul 2009 06:47:55 +0000
parents 0ac5a002dd6d
children 29e1cc634466
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,