]> granicus.if.org Git - pdns/commitdiff
Fix invalid iterator usage
authorAki Tuomi <cmouse@cmouse.fi>
Sun, 18 Oct 2015 20:30:16 +0000 (23:30 +0300)
committerAki Tuomi <cmouse@desteem.org>
Mon, 26 Oct 2015 10:28:04 +0000 (12:28 +0200)
Fixes CID#1311859

pdns/dnssecinfra.cc

index 06f9033439eeb38403199d367a2a21a09d0eeedb..3224648b75e9069aab03868cb4cf446c69fe6d73 100644 (file)
@@ -591,7 +591,7 @@ void addTSIG(DNSPacketWriter& pw, TSIGRecordContent* trc, const DNSName& tsigkey
     
     toSign.append(tsigprevious);
   }
-  toSign.append(&*pw.getContent().begin(), &*pw.getContent().end());
+  toSign.append(pw.getContent().begin(), pw.getContent().end());
   
   // now add something that looks a lot like a TSIG record, but isn't
   vector<uint8_t> signVect;