From c5698766d4c4f64c44ca4ab8341967389393d35d Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Tue, 20 Aug 2019 20:35:59 -0600 Subject: * Improve code that determines the type of encryption that is used according to user's request. --- imap/src/c-client/mail.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'imap') diff --git a/imap/src/c-client/mail.c b/imap/src/c-client/mail.c index 49444ebe..7291a642 100644 --- a/imap/src/c-client/mail.c +++ b/imap/src/c-client/mail.c @@ -6240,10 +6240,10 @@ NETSTREAM *net_open (NETMBX *mb,NETDRIVER *dv,unsigned long port, NETSTREAM *stream = NIL; char tmp[MAILTMPLEN]; unsigned long flags = mb->novalidate ? NET_NOVALIDATECERT : 0; - flags |= mb->tls1 || mb->tlsflag ? NET_TRYTLS1 : 0; - flags |= mb->tls1_1 ? NET_TRYTLS1_1 : 0; - flags |= mb->tls1_2 ? NET_TRYTLS1_2 : 0; - flags |= mb->tls1_3 ? NET_TRYTLS1_3 : 0; + flags |= mb->tls1 ? NET_TRYTLS1 + : mb->tls1_1 ? NET_TRYTLS1_1 + : mb->tls1_2 ? NET_TRYTLS1_2 + : mb->tls1_3 ? NET_TRYTLS1_3 : 0; if (strlen (mb->host) >= NETMAXHOST) { sprintf (tmp,"Invalid host name: %.80s",mb->host); MM_LOG (tmp,ERROR); -- cgit v1.2.3-70-g09d2