]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dns: move callback affection in dns_link_resolution()
authorBaptiste Assmann <bedis9@gmail.com>
Tue, 30 Jan 2018 07:08:04 +0000 (08:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2019 09:34:11 +0000 (11:34 +0200)
commitdb4c8521caefcc8ec2a26f60b4659019dc94e54d
treec5c2e5a99d836f533791c613491770dde42da0cf
parentdfd35fd71ad9190a3d1f3c8358f335053b9834d8
MINOR: dns: move callback affection in dns_link_resolution()

In dns.c, dns_link_resolution(), each type of dns requester is managed
separately, that said, the callback function is affected globaly (and
points to server type callbacks only).
This design prevents the addition of new dns requester type and this
patch aims at fixing this limitation: now, the callback setting is done
directly into the portion of code dedicated to each requester type.
src/dns.c