From: Otto Moerbeek Date: Tue, 24 Oct 2023 08:29:04 +0000 (+0200) Subject: Tidy X-Git-Tag: rec-5.0.0-beta1~36^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13413%2Fhead;p=thirdparty%2Fpdns.git Tidy --- diff --git a/pdns/libssl.cc b/pdns/libssl.cc index c56c7bebef..610783fb82 100644 --- a/pdns/libssl.cc +++ b/pdns/libssl.cc @@ -290,12 +290,9 @@ int libssl_ticket_key_callback(SSL* /* s */, OpenSSLTLSTicketKeysRing& keyring, return 1; } -static int libssl_server_name_callback(SSL* ssl, int* al, void* arg) +static int libssl_server_name_callback(SSL* ssl, int* /* alert */, void* /* arg */) { - (void) al; - (void) arg; - - if (SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name)) { + if (SSL_get_servername(ssl, TLSEXT_NAMETYPE_host_name) != nullptr) { return SSL_TLSEXT_ERR_OK; }