]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: Drop SSL_get_servername_type() check
authorAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 27 Nov 2024 11:23:55 +0000 (13:23 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:01 +0000 (10:40 +0200)
It's not useful. We know if host is not NULL that we already got
host_name from previous call.

src/lib-ssl-iostream/iostream-openssl-context.c

index b97f572e14c271de9a7b4c3358a8503043494870..4b25dd11ccb21039402e83f53b13ebe83afbeeff 100644 (file)
@@ -332,10 +332,6 @@ static int ssl_servername_callback(SSL *ssl, int *al,
        ssl_io = SSL_get_ex_data(ssl, dovecot_ssl_extdata_index);
        host = SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name);
 
-       if (SSL_get_servername_type(ssl) == -1) {
-               e_debug(ssl_io->event, "SSL_get_servername() failed");
-       }
-
        if (ssl_servername_process(ssl_io, host, al) < 0)
                return SSL_TLSEXT_ERR_ALERT_FATAL;