]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "BUG/MEDIUM: dns: fix long loops in additional records parse on name failure"
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 May 2026 13:37:35 +0000 (15:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 27 May 2026 13:42:10 +0000 (15:42 +0200)
commit091768ab3ed11ce78ca60168bd2bcca950896758
tree6bb2404324274ebd063709ecf5f4fc145f791a01
parentcd652efecab08ce6a10240456635c326cc22e0ea
Revert "BUG/MEDIUM: dns: fix long loops in additional records parse on name failure"

This reverts commit fefce297ab5d0c36d6d6773092c976ea6166dc1e.

The commit broke the resolvers. All responses are marked as invalid. The
resolv_read_name() function can return 0 on error, but it seems also
possible to return 0 when no label name was found. And depending on the
caller, it can be an error... or not.

So, let's revert it. This might trigger a watchdog but doesn't seem to and
once fixed it makes things worse.

Must be backported as far as 2.4.
src/resolvers.c