Permalink
Browse files

unbreak.. well, everything. Brown paper bag commit.

  • Loading branch information...
1 parent bf7f822 commit 063076b722d19405e9860484238b99895670c78d @Habbie Habbie committed Jun 20, 2013
Showing with 2 additions and 5 deletions.
  1. +2 −5 pdns/dnspacket.cc
View
@@ -310,13 +310,14 @@ void DNSPacket::wrapup()
if(pos->d_place == DNSResourceRecord::ANSWER || pos->d_place == DNSResourceRecord::AUTHORITY) {
pw.getHeader()->tc=1;
}
- goto truncated;
+ goto noCommit;
}
}
// if(!pw.getHeader()->tc) // protect against double commit from addSignature
if(!d_rrs.empty()) pw.commit();
+
noCommit:;
if(d_haveednssubnet) {
@@ -328,10 +329,6 @@ void DNSPacket::wrapup()
opts.push_back(make_pair(::arg().asNum("edns-subnet-option-number"), opt));
}
- pw.commit();
-
- truncated:;
-
if(!opts.empty() || d_haveednssection || d_dnssecOk)
{
pw.addOpt(2800, 0, d_dnssecOk ? EDNSOpts::DNSSECOK : 0, opts);

0 comments on commit 063076b

Please sign in to comment.