]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
In add_edns(), the value of _make_opt() is an RRSet not an rdataset.
authorBob Halley <halley@play-bow.org>
Mon, 29 Jun 2020 13:26:46 +0000 (06:26 -0700)
committerBob Halley <halley@play-bow.org>
Mon, 29 Jun 2020 13:26:46 +0000 (06:26 -0700)
dns/renderer.py

index 34ca12ab885b79988b765f6b8548d0707b1c040c..8b2548760d374c540efa96cb9b1b966afc0da537 100644 (file)
@@ -171,7 +171,7 @@ class Renderer:
         ednsflags &= 0xFF00FFFF
         ednsflags |= (edns << 16)
         opt = dns.message.Message._make_opt(ednsflags, payload, options)
-        self.add_rdataset(ADDITIONAL, dns.name.root, opt)
+        self.add_rrset(ADDITIONAL, opt)
 
     def add_tsig(self, keyname, secret, fudge, id, tsig_error, other_data,
                  request_mac, algorithm=dns.tsig.default_algorithm):