]> git.ipfire.org Git - thirdparty/dnspython.git/commit
In async TLS do not ignore a ssl_context given as an argument [#951].
authorBob Halley <halley@dnspython.org>
Fri, 7 Jul 2023 14:29:08 +0000 (07:29 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 7 Jul 2023 14:31:33 +0000 (07:31 -0700)
commitff75996bdd105ea485c0271c71b3c017b92f1de1
tree568afd365764c573c8f9dbdd988400da7330a900
parente656fe0760d0dbc6b261352f02e0b2560ff8b86a
In async TLS do not ignore a ssl_context given as an argument [#951].

The async TLS code would always fail if given an ssl_context instead
of making one, as it set the passed paramter to None and then called
into the async socket backend, which would make a regular TCP socket
(i.e. no TLS), which would be rejected by the server as it wasn't
using TLS.

(cherry picked from commit 73badd1e27d54f74a3d7815a3edb911f5db394a0)
dns/asyncquery.py