From: Remi Gacogne Date: Thu, 19 Oct 2017 08:45:23 +0000 (+0200) Subject: auth: Fix Bind2Backend::addDomainKey return value without SQLite3 X-Git-Tag: rec-4.1.0-rc2~28^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=442a9bc0fc9980c1b9465879f1d7c17016ba56bb;p=thirdparty%2Fpdns.git auth: Fix Bind2Backend::addDomainKey return value without SQLite3 Since 82cc07611d23c5e815d8673ae070cf0e421351ad changed the return value from an `int` to a `bool`, it would return `true` instead of `false` when SQLite3 support was not available. --- diff --git a/modules/bindbackend/binddnssec.cc b/modules/bindbackend/binddnssec.cc index ead39ccd69..df005ac9c3 100644 --- a/modules/bindbackend/binddnssec.cc +++ b/modules/bindbackend/binddnssec.cc @@ -57,7 +57,7 @@ bool Bind2Backend::removeDomainKey(const DNSName& name, unsigned int id) { return false; } bool Bind2Backend::addDomainKey(const DNSName& name, const KeyData& key, int64_t& id) -{ return -1; } +{ return false; } bool Bind2Backend::activateDomainKey(const DNSName& name, unsigned int id) { return false; }