From: Aki Tuomi Date: Sun, 18 Oct 2015 20:30:16 +0000 (+0300) Subject: Fix invalid iterator usage X-Git-Tag: dnsdist-1.0.0-alpha1~230^2~27^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6604fe12c326d087e63ce28cabc21c8f82c727d;p=pdns Fix invalid iterator usage Fixes CID#1311859 --- diff --git a/pdns/dnssecinfra.cc b/pdns/dnssecinfra.cc index 06f903343..3224648b7 100644 --- a/pdns/dnssecinfra.cc +++ b/pdns/dnssecinfra.cc @@ -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 signVect;