From 25cee6b9448744d3b6428ceb38cda9de0efd327c Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 9 Nov 2012 07:39:37 +0000 Subject: [PATCH] handle direct RRSIG queries in the presence of an incomplete SOA more gracefully. Spotted and patched by Kees Monshouwer. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2869 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/packethandler.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index 818931daec..c7b07e44f3 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -832,6 +832,11 @@ void PacketHandler::synthesiseRRSIGs(DNSPacket* p, DNSPacket* r) if(!rr.auth) continue; + // make sure all fields are present in the SOA content + if(rr.qtype.getCode() == QType::SOA) { + rr.content = serializeSOAData(sd); + } + // this deals with the 'prio' mismatch! if(rr.qtype.getCode()==QType::MX || rr.qtype.getCode() == QType::SRV) { rr.content = lexical_cast(rr.priority) + " " + rr.content; -- 2.47.3