]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: fix reallocation issue in DNSSECKeeper::getPreRRSIGs()
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 21 Oct 2020 20:55:28 +0000 (22:55 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 21 Oct 2020 20:55:28 +0000 (22:55 +0200)
pdns/dbdnsseckeeper.cc

index 383a3e05b40287666ce806da09259eb59b844b16..650cbd0e6952b66b584b25b6112d07a19a00cfe2 100644 (file)
@@ -611,7 +611,7 @@ void DNSSECKeeper::getPreRRSIGs(UeberBackend& db, vector<DNSZoneRecord>& rrs, ui
     return;
   }
 
-  const auto& rr = *rrs.rbegin();
+  const auto rr = *rrs.rbegin();
 
   DNSZoneRecord dzr;
   std::shared_ptr<RRSIGRecordContent> rrsig;