]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Tidy 13413/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 24 Oct 2023 08:29:04 +0000 (10:29 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 24 Oct 2023 08:29:04 +0000 (10:29 +0200)
pdns/libssl.cc

index c56c7bebefe9e44f3d79f34f8101dc548dd248a0..610783fb82409774855f2a1c45cc62a1602aa175 100644 (file)
@@ -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;
   }