From 0707eb6d0053079b4f91849bba2f8b6fc97391e8 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Thu, 28 Feb 2019 18:39:52 -0700 Subject: * Clean up some code in the ssl_unix module. It adds to the last modifications in the ssl_unix module. --- imap/src/osdep/unix/ssl_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imap/src/osdep/unix/ssl_unix.c') diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c index 11454cbd..05eabce3 100644 --- a/imap/src/osdep/unix/ssl_unix.c +++ b/imap/src/osdep/unix/ssl_unix.c @@ -1,4 +1,5 @@ /* ======================================================================== + * Copyright 2019 Eduardo Chappa * Copyright 2008-2009 Mark Crispin * ======================================================================== */ @@ -222,7 +223,6 @@ int ssl_disable_mask(int ssl_version, int direction) */ const SSL_METHOD *ssl_connect_mthd(int flag, int *min, int *max) { - char tmp[10000]; int client_request; client_request = (flag & NET_TRYTLS1) ? TLS1_VERSION : (flag & NET_TRYTLS1_1) ? TLS1_1_VERSION @@ -250,7 +250,7 @@ const SSL_METHOD *ssl_connect_mthd(int flag, int *min, int *max) #ifndef OPENSSL_1_1_0 if(client_request == SSL3_VERSION) return SSLv3_client_method(); - if(client_request == TLS1_VERSION) + else if(client_request == TLS1_VERSION) return TLSv1_client_method(); else if(client_request == TLS1_1_VERSION) return TLSv1_1_client_method(); -- cgit v1.2.3-54-g00ecf