]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: usr: Reject negative and out-of-range TTLs in dnssec-* tools
authorOndřej Surý <ondrej@isc.org>
Thu, 30 Apr 2026 15:40:39 +0000 (17:40 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 30 Apr 2026 15:40:39 +0000 (17:40 +0200)
The dnssec-* tools accepted negative and out-of-range values for TTL
flags such as dnssec-keygen -L, dnssec-signzone -t and
dnssec-settime -L, silently turning them into TTLs of around 136 years
in the resulting key or zone files. The flag values are now validated
and rejected with a clear "TTL must be non-negative" or "TTL out of
range" error.

Closes #5923

Merge branch '5923-dnssectool-strtottl-negative-ttl-accepted' into 'main'

See merge request isc-projects/bind9!11933


Trivial merge