]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Properly set the size of the UDP health-check response 12804/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 11 May 2023 13:27:07 +0000 (15:27 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 11 May 2023 13:27:07 +0000 (15:27 +0200)
commit6a04912e36e32104434d2b1b0625a0de0e0c002d
tree8b000d75b31b34638fdb85f9e04eb23930fefcbe
parentaa79ed1e2294a0292a6a2f720470bde3d5748358
dnsdist: Properly set the size of the UDP health-check response

We forgot to resize the response buffer to what we actually got,
so the initial buffer size (512) was mistakenly used later on.
Technically this should not be an issue as the buffer is large
enough, but that prevents us from reporting that the response
was broken if it not large enough for a DNS header, for example.
pdns/dnsdistdist/dnsdist-healthchecks.cc