From: bert hubert Date: Wed, 7 Sep 2016 11:42:20 +0000 (+0200) Subject: when doing a rollback while writing a packet, reset the packet writer state so we... X-Git-Tag: dnsdist-1.1.0-beta2~134^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bb75371bfa642d3236858fb0ac32b956bb03567;p=pdns when doing a rollback while writing a packet, reset the packet writer state so we don't think we have a record left to write out --- diff --git a/pdns/dnswriter.cc b/pdns/dnswriter.cc index a369a8f60..b8501be70 100644 --- a/pdns/dnswriter.cc +++ b/pdns/dnswriter.cc @@ -380,6 +380,7 @@ uint32_t DNSPacketWriter::size() void DNSPacketWriter::rollback() { d_content.resize(d_rollbackmarker); + d_sor = 0; } void DNSPacketWriter::truncate()