BUG/MINOR: dns: fix ring offset calculation in dns_resolve_send()
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 7 Mar 2023 17:01:34 +0000 (18:01 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 8 Mar 2023 07:57:13 +0000 (08:57 +0100)
commitbce0c0c37afb55715c9593da0cad0dc2f0c843f8
treeebc5aecf5189a400a7e57cc4023a324366176247
parent5a43db2c5d33b9ec575b2faa4eb0921af234824d
BUG/MINOR: dns: fix ring offset calculation in dns_resolve_send()

With 737d10f ("BUG/MEDIUM: dns: ensure ring offset is properly reajusted
to head") relative offset calculation was fixed in dns_session_io_handler()
and dns_process_req() functions.

But if we compare with the changes performed in the patch that introduced
the bug: d9c7188 ("MEDIUM: ring: make the offset relative to the head/tail
instead of absolute"), we can see that dns_resolve_send() is missing from
the patch.

Applying both 737d10f + ("BUG/MINOR: dns: fix ring offset calculation on
first read") to dns_resolve_send() function.
With this last commit, we should be back at pre d9c7188 behavior.

No backport needed.
src/dns.c