]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove no longer needed code to activate EDNS if setting an extended
authorBob Halley <halley@play-bow.org>
Mon, 29 Jun 2020 01:53:20 +0000 (18:53 -0700)
committerBob Halley <halley@play-bow.org>
Mon, 29 Jun 2020 01:53:20 +0000 (18:53 -0700)
rcode and EDNS has not previously been activated.  The code is no longer
needed as setting ednsflags to a nonzero value will automatically make
an opt RR and enable EDNS.

dns/message.py

index 0f4a40125a68e5d8720113bc57105ca10c780b2e..cc1de46fda21a3223d8d11c588ceefcf17b5455b 100644 (file)
@@ -624,8 +624,6 @@ class Message:
         self.flags |= value
         self.ednsflags &= 0x00FFFFFF
         self.ednsflags |= evalue
-        if self.ednsflags != 0 and self.edns < 0:
-            self.edns = 0
 
     def opcode(self):
         """Return the opcode.