From: Ondřej Surý Date: Thu, 13 Aug 2026 19:54:20 +0000 (+0200) Subject: new: dev: Add dns_name_empty() to avoid counting labels in emptiness checks X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7db56119a7530230bb89297bc038d714a1ab2a6c;p=thirdparty%2Fbind9.git new: dev: Add dns_name_empty() to avoid counting labels in emptiness checks 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 --- 7db56119a7530230bb89297bc038d714a1ab2a6c