]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsparser was using an empty dnsname when it meant to use a root.
authorbert hubert <bert.hubert@powerdns.com>
Fri, 26 Aug 2016 13:36:54 +0000 (15:36 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 27 Aug 2016 12:15:55 +0000 (14:15 +0200)
pdns/dnsparser.hh

index 8f00c49e72fcbbaac8a61e11e3ac2bebdf3edaaf..651dc6e61f85ec69bbe4939e2c28068f89b5d61f 100644 (file)
@@ -177,8 +177,7 @@ public:
   virtual string serialize(const DNSName& qname, bool canonic=false, bool lowerCase=false) // it would rock if this were const, but it is too hard
   {
     vector<uint8_t> packet;
-    DNSName empty;
-    DNSPacketWriter pw(packet, empty, 1);
+    DNSPacketWriter pw(packet, g_rootdnsname, 1);
     if(canonic)
       pw.setCanonic(true);