diff libpurple/protocols/jabber/jabber.c @ 27656: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 7fbf964c6c6c
children e8e056876e39
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,