summaryrefslogtreecommitdiffstats
path: root/src/pedro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pedro')
-rw-r--r--src/pedro/pedroxmpp.cpp4
1 files changed, 3 insertions, 1 deletions
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 =