]> granicus.if.org Git - pdns/commitdiff
auth: Fix Bind2Backend::addDomainKey return value without SQLite3
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Oct 2017 08:45:23 +0000 (10:45 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Oct 2017 08:45:23 +0000 (10:45 +0200)
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.

modules/bindbackend/binddnssec.cc

index ead39ccd69c39ac1477271f07ec9f7e333004055..df005ac9c38299ad17e870ec42a6c28a7ab90820 100644 (file)
@@ -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; }