From ae459381b75891d05673c206a4487d99560e0e69 Mon Sep 17 00:00:00 2001 From: ishmal Date: Tue, 29 Aug 2006 00:42:05 +0000 Subject: [PATCH] better handle startTls() if client not built with ssl --- src/pedro/pedroxmpp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pedro/pedroxmpp.cpp b/src/pedro/pedroxmpp.cpp index 398e6722b..17c7ef3ba 100644 --- a/src/pedro/pedroxmpp.cpp +++ b/src/pedro/pedroxmpp.cpp @@ -2050,7 +2050,9 @@ bool XmppClient::saslAuthenticate() status("login: STARTTLS available"); } - if (wantStartTls && !sock->getEnableSSL()) + //# do we want TLS, are we not already running SSL, and can + //# the client actually do an ssl connection? + if (wantStartTls && !sock->getEnableSSL() && sock->getHaveSSL()) { delete elem; char *fmt = -- 2.30.2