From 7d31e115e633133107043ceccb718c3f2c85aff3 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 29 Apr 2025 11:21:37 +0200 Subject: [PATCH] dnsdist: Fix typos reported by Josh Soref (thanks!) --- pdns/tcpiohandler.cc | 2 +- regression-tests.dnsdist/test_SNI.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/tcpiohandler.cc b/pdns/tcpiohandler.cc index 6f46d284f4..a0b10f24b9 100644 --- a/pdns/tcpiohandler.cc +++ b/pdns/tcpiohandler.cc @@ -122,7 +122,7 @@ static int sni_server_name_callback(SSL* ssl, int* /* alert */, void* /* arg */) } /* if it fails there is nothing we can do, - let's hope OpenSSL will fallback to the existing, + let's hope OpenSSL will fall back to the existing, default certificate*/ SSL_set_SSL_CTX(ssl, mapIt->second.get()); return SSL_TLSEXT_ERR_OK; diff --git a/regression-tests.dnsdist/test_SNI.py b/regression-tests.dnsdist/test_SNI.py index 31ac684d47..990d094d6d 100644 --- a/regression-tests.dnsdist/test_SNI.py +++ b/regression-tests.dnsdist/test_SNI.py @@ -123,7 +123,7 @@ class TestSNI(DNSDistTest): self.assertTrue(receivedResponse) self.assertEqual(response, receivedResponse) - # check SNI for an unkown name, we should get the first certificate + # check SNI for an unknown name, we should get the first certificate name = 'unknown.sni.tests.powerdns.com.' query = dns.message.make_query(name, 'A', 'IN', use_edns=False) response = dns.message.make_response(query) -- 2.47.2