commit | 3bda80789c88e032fc4bd72e5d775841aeb046c4 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Mon Jul 18 14:12:17 2022 +0200 |
committer | William Lallemand <wlallemand@haproxy.org> | Mon Jul 18 14:39:36 2022 +0200 |
tree | 057b3cfd60adf8f1313b6922c1ebc4a9f11c930e | |
parent | e606c84feea81ed408217ed88a5ce11d6b3f65d4 [diff] |
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.