]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Fix getTSIGKeys() return value in GSQL and LMDB backends 11755/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 4 Jul 2022 17:04:44 +0000 (19:04 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 4 Jul 2022 17:04:44 +0000 (19:04 +0200)
commitfb10c7090c649fe51f9cde82e4cf7252f011d72d
treed759bf4c099485c88023b86659cc3c0b85d34cda
parent492d930e3afc006e631a4e1f832eb84168aa471a
auth: Fix getTSIGKeys() return value in GSQL and LMDB backends

These Bind and remote backends return true when at least a TSIG key
is returned, as expected by the API and pdnsutil code, but the GSQL
backend returned false if at least a key was returned and true
otherwise. The LMDB backend always returned false.
This caused `pdnsutil b2b-migrate` not to migrate TSIG keys from a
GSQL or LMDB backend, amongst other things.
modules/lmdbbackend/lmdbbackend.cc
pdns/backends/gsql/gsqlbackend.cc