]> git.ipfire.org Git - thirdparty/pdns.git/commit
Ignore unreachable TSIG keys in getTSIGKeys. 15004/head
authorMiod Vallat <miod.vallat@open-xchange.com>
Thu, 2 Jan 2025 09:17:16 +0000 (10:17 +0100)
committerMiod Vallat <miod.vallat@open-xchange.com>
Mon, 6 Jan 2025 11:41:26 +0000 (12:41 +0100)
commitdeff288b6358619dd16c660aded02716a929b4be
treeb33dc47264a6031af2ced361b6c11dc1d41e77ed
parent788f396a78120c6c9ec0c5466fdfaa45b9145ce1
Ignore unreachable TSIG keys in getTSIGKeys.

Pre-v5 database schema would (incorrectly) allow for multiple TSIG
keys to be created with the same name and algorithm. Once the database
gets converted to v5 schema, those redundant keys can no longer be used,
yet would appear in pdnsutil list-tsig-key output.

Change the list logic to only report reachable keys.

Fixes 14779
modules/lmdbbackend/lmdbbackend.cc