From 1f84a96fdb3ac9006d3ee4452a1b02b87ffb461d Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 1 Mar 2001 09:51:24 +0000 Subject: [PATCH] Don't engage STARTTLS when already in SSL mode. --- imap/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/imap.c b/imap/imap.c index 80460a2c..eb7cc01c 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -377,7 +377,7 @@ int imap_open_connection (IMAP_DATA* idata) goto bail; #if defined(USE_SSL) && !defined(USE_NSS) /* Attempt STARTTLS if available and desired. */ - if (mutt_bit_isset (idata->capabilities, STARTTLS)) + if (mutt_bit_isset (idata->capabilities, STARTTLS) && !idata->conn->ssf) { if ((rc = query_quadoption (OPT_SSLSTARTTLS, _("Secure connection with TLS?"))) == -1) -- 2.50.1