]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix key ID processing
authorMichał Kępień <michal@isc.org>
Mon, 17 Jun 2019 12:15:18 +0000 (14:15 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 17 Jun 2019 12:15:18 +0000 (14:15 +0200)
commit0b7b1161c215bf4e08467c79282dddc34bda2240
tree35f23f086e431296dd56b351da59ae565ba61257
parentfd8adb1282c18c26d19eeaa4ff6a1c22bf7087f8
Fix key ID processing

If ns1/setup.sh generates a key with ID 0, the "KEYID" token in
ns1/named.conf.in will be replaced with an empty string, causing the
following broken statement to appear in ns1/named.conf:

    tkey-dhkey "server" ;

Such a statement triggers false positives for the "tkey" system test due
to ns1 being unable to start with a broken configuration file.  Fix by
tweaking the regular expression used for removing leading zeros from the
key ID, so that it removes at most 4 leading zeros.
bin/tests/system/tkey/ns1/setup.sh