Permalink
Browse files

improve OPT handling, presumably fixes #875

  • Loading branch information...
1 parent fb4ab5e commit bf7f822675253b0d786535ae45d45e1fe2b2af15 @Habbie Habbie committed Jun 20, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 pdns/dnspacket.cc
View
@@ -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);

0 comments on commit bf7f822

Please sign in to comment.