]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: resolvers: Don't overwrite the error for invalid query domain name
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Dec 2021 09:05:02 +0000 (10:05 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Dec 2021 09:05:04 +0000 (10:05 +0100)
commitaf93d2fd70ef03d89d11b0d6b04e4f60a8ff002f
tree399af14aae80218753a2c9b8324274c448a72d8a
parent02c893332bb22b49dbc96e804ca6018446c40f7c
BUG/MINOR: resolvers: Don't overwrite the error for invalid query domain name

When a response is validated, the query domain name is checked to be sure it
is the same than the one requested. When an error is reported, the wrong
goto label was used. Thus, the error was lost. Instead of
RSLV_RESP_WRONG_NAME, RSLV_RESP_INVALID was reported.

This bug was introduced by the commit c1699f8c1 ("MEDIUM: resolvers: No
longer store query items in a list into the response").

This patch should fix the issue #1473. No backport is needed.
src/resolvers.c