From b0c30b2bb042c64304b76f65006d66594f09e624 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Tue, 24 Oct 2023 10:29:04 +0200 Subject: [PATCH] Tidy --- pdns/libssl.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } -- 2.47.2