]> granicus.if.org Git - pdns/commitdiff
auth: `id` variable shadows reference in `Bind2Backend::addDomainKey()`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 15 Sep 2016 09:28:20 +0000 (11:28 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 15 Sep 2016 09:28:20 +0000 (11:28 +0200)
modules/bindbackend/binddnssec.cc

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