From: Peter van Dijk Date: Thu, 20 Jun 2013 10:30:32 +0000 (+0200) Subject: improve OPT handling, presumably fixes #875 X-Git-Tag: rec-3.6.0-rc1~641 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=732b7143978c41998c8a9496eb683e5952e0124c;p=thirdparty%2Fpdns.git improve OPT handling, presumably fixes #875 --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index d7f082e68c..782c01b362 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -313,6 +313,11 @@ void DNSPacket::wrapup() goto truncated; } } + + // if(!pw.getHeader()->tc) // protect against double commit from addSignature + + if(!d_rrs.empty()) pw.commit(); + noCommit:; if(d_haveednssubnet) { string makeEDNSSubnetOptsString(const EDNSSubnetOpts& eso);