]> git.ipfire.org Git - thirdparty/bind9.git/commit
Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision
authorOndřej Surý <ondrej@isc.org>
Wed, 29 Apr 2026 12:03:38 +0000 (14:03 +0200)
committerOndřej Surý (GitLab job 7267183) <ondrej@isc.org>
Wed, 29 Apr 2026 15:32:03 +0000 (15:32 +0000)
commit3e5fedfcfa100cd68346d8fe3025f6420cb8eb32
tree7d35dec109fada4bad7c5a28153892f6581ea61e
parent54b53117ef35219c2919d0a9fbf93010e872b0ce
Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision

Both constants were defined as 5. The symbol table used by checkns() to
deduplicate log messages keys on (name, error_code), so logging an
extra-AAAA error caused logged() to also return true for the
missing-glue check, silently skipping the entire missing-glue block for
the same name in named-checkzone and named-checkconf -z.

Convert the ERR_* defines to an auto-numbered enum so the compiler
guarantees the values stay pairwise distinct.

Assisted-by: Claude:claude-opus-4-7
(cherry picked from commit 72d21a08063400d9a3e9c3d13ccc5ac28bf457c1)
bin/check/check-tool.c