]> git.kaiwu.me - haproxy.git/commit
CLEANUP: resolvers: stop clearing the DNS response buffer
authorManu Nicolas <e.nicolas@criteo.com>
Tue, 1 Sep 2026 10:44:45 +0000 (10:44 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Sep 2026 15:58:52 +0000 (17:58 +0200)
commit259465498fe59c3c14125e5a956ab4d5accee2f4
treefdc8588e5caa9ba71948557b4e9375d108561125
parent3b400190830c5ed9b99e616d23eb8f52937f10e8
CLEANUP: resolvers: stop clearing the DNS response buffer

resolv_process_responses() clears the whole response buffer before
each receive. The receive operation supplies the message length and
all parser accesses are bounded by the corresponding end pointer, so
no byte beyond the received message is observed.

Remove the unnecessary buffer clear.
src/resolvers.c