]> git.ipfire.org Git - thirdparty/pdns.git/commit
Do not use countLabels() in chopOff() loop conditions. 15922/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 25 Jul 2025 13:00:13 +0000 (15:00 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 25 Jul 2025 13:02:42 +0000 (15:02 +0200)
commit0bf51769fe5177696ae10763a0f242b8a4104c70
tree1c78499789d6d8a599d19df5fbe2cb1fc2448eb1
parent4f2c746ca6bbf4721fdbc1afbf4301ed4e6fd34e
Do not use countLabels() in chopOff() loop conditions.

Instead, compute it once outside of the loop in a local variable and
decrement that variable.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/dnsname.cc
pdns/dnssecinfra.cc