From: Remi Gacogne Date: Thu, 15 Sep 2016 09:28:20 +0000 (+0200) Subject: auth: `id` variable shadows reference in `Bind2Backend::addDomainKey()` X-Git-Tag: dnsdist-1.1.0-beta2~111^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a11645d24ffc155e9c4630b5d37ad4a2ec4be508;p=pdns auth: `id` variable shadows reference in `Bind2Backend::addDomainKey()` --- diff --git a/modules/bindbackend/binddnssec.cc b/modules/bindbackend/binddnssec.cc index b432e3067..db3d116df 100644 --- a/modules/bindbackend/binddnssec.cc +++ b/modules/bindbackend/binddnssec.cc @@ -337,7 +337,7 @@ bool Bind2Backend::addDomainKey(const DNSName& name, const KeyData& key, int64_t SSqlStatement::row_t row; d_GetLastInsertedKeyIdQuery_stmt->nextRow(row); ASSERT_ROW_COLUMNS("get-last-inserted-key-id-query", row, 1); - int id = std::stoi(row[0]); + id = std::stoi(row[0]); d_GetLastInsertedKeyIdQuery_stmt->reset(); return true; }