]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Check the size of the query when re-sending a DoH query
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Dec 2021 14:36:37 +0000 (15:36 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Dec 2021 14:36:37 +0000 (15:36 +0100)
commit5d552300959a5133546bb65ddeb8ce918d598c08
tree02d6260cd1182213bafaa59decc666444ee06955
parentba837d1ababdc3d0ea4fb5b56938480c62edb5f9
dnsdist: Check the size of the query when re-sending a DoH query

When the UDP response to a DoH query was truncated, we re-send the
query via TCP, passing it to a TCP worker. We need to edit the ID
to its original value before that, and while there is no reason
that the query is smaller than a dnsheader, we need to check its size,
not the size of the response.
pdns/dnsdistdist/doh.cc