]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix SERVFAIL when backend returns empty DNSName 8054/head
authorMark Zealey <mark@markandruth.co.uk>
Wed, 10 Jul 2019 11:17:32 +0000 (14:17 +0300)
committerMark Zealey <mark@markandruth.co.uk>
Wed, 10 Jul 2019 11:21:15 +0000 (14:21 +0300)
commit41147d678b30612d2431b59a898879368f1c4b06
treecb94b13a349de80c4c22ab07c2e12136b260f274
parent8bf902331dc77a0910f97f0be66bcd4a42e4edef
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.
pdns/ueberbackend.cc