]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix unit tests for incoming DoH w/ nghttp2 13227/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Sep 2023 14:19:41 +0000 (16:19 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Sep 2023 14:19:41 +0000 (16:19 +0200)
commit9eaa6332084badc63db023d6d1a8ffc1a1001d31
tree129c02c0c7fec6ec8f2250c24ec46cc0f1634e38
parent7327f8237a27fc90de74e809d2d8c01dc908b60a
dnsdist: Fix unit tests for incoming DoH w/ nghttp2

These tests were failing on EL with LTO enabled, and passing
everywhere else. It turns out that we did not properly reset
the `s_processQuery` hack that we used in these tests to
simulate the policy decision (rules and actions), and thus
inherited what the last test set it to instead of the default
(dropping queries), which was very unexpected.
pdns/dnsdistdist/test-dnsdistnghttp2-in_cc.cc