From bf7f822675253b0d786535ae45d45e1fe2b2af15 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 20 Jun 2013 12:30:32 +0200 Subject: [PATCH] improve OPT handling, presumably fixes #875 --- pdns/dnspacket.cc | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.47.3