]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Properly set the size of the UDP health-check response 12822/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 11 May 2023 13:27:07 +0000 (15:27 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 15 May 2023 12:58:36 +0000 (14:58 +0200)
commit93de9ed59b50bb2c29c81c6537520e384f30965d
tree03c10f45b6704b14386fd3ea55e897f0ef4a2b6c
parente5c78acae81cf69c1346417fc913f8b8273e2787
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.

(cherry picked from commit 6a04912e36e32104434d2b1b0625a0de0e0c002d)
pdns/dnsdistdist/dnsdist-healthchecks.cc