]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: resolvers: shut off the warning for the default resolvers
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 18 Jul 2022 12:12:17 +0000 (14:12 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 18 Jul 2022 12:39:36 +0000 (14:39 +0200)
commit3bda80789c88e032fc4bd72e5d775841aeb046c4
tree057b3cfd60adf8f1313b6922c1ebc4a9f11c930e
parente606c84feea81ed408217ed88a5ce11d6b3f65d4
BUG/MINOR: resolvers: shut off the warning for the default resolvers

When the resolv.conf file is empty or there is no resolv.conf file, an
empty resolvers will be created, which emits a warning during the
postparsing step.

This patch fixes the problem by freeing the resolvers section if the
parsing failed or if the nameserver list is empty.

Must be backported in 2.6, the previous patch which introduces
resolvers_destroy() is also required.
src/resolvers.c