From: Remi Gacogne Date: Tue, 29 Apr 2025 09:21:37 +0000 (+0200) Subject: dnsdist: Fix typos reported by Josh Soref (thanks!) X-Git-Tag: dnsdist-2.0.0-alpha2~40^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15409%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix typos reported by Josh Soref (thanks!) --- 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)