]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix SERVFAIL when backend returns empty DNSName 8058/head
authorMark Zealey <mark@markandruth.co.uk>
Wed, 10 Jul 2019 11:17:32 +0000 (14:17 +0300)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 10 Jul 2019 19:28:08 +0000 (21:28 +0200)
commitdfa4713a9c63870afb8a30f73e7b0ebde239513a
tree564572568169ab9323e3f61c3ae7f20c7ee234cc
parent0ab953f5871af6c7fe62ae10c4e775d958e2e16b
Fix SERVFAIL when backend returns empty DNSName

According to the documentation on UeberBackend::getAuth(), a backend
returning an empty DNSName should signal that no matching parent zone
exists in this backend. However commit ae14c1f36a raises an exception if
isPartOf() is called on an empty DNSName so we need to switch the order
of the logic to prevent a SERVFAIL as a result.

(cherry picked from commit 41147d678b30612d2431b59a898879368f1c4b06)
pdns/ueberbackend.cc