]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
new: dev: Add dns_name_empty() to avoid counting labels in emptiness checks
authorOndřej Surý <ondrej@isc.org>
Thu, 13 Aug 2026 19:54:20 +0000 (21:54 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 13 Aug 2026 19:54:20 +0000 (21:54 +0200)
Checking whether a DNS name is empty was done with dns_name_countlabels(), which walks every label in the name just to compare the count with zero. The new dns_name_empty() helper checks the name's length directly, and a coccinelle patch converts the existing callers.

Merge branch 'ondrej/add-dns_name_empty' into 'main'

See merge request isc-projects/bind9!12558


Trivial merge