]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
do not call the OPT constructor with rdclass == None
authorBob Halley <halley@dnspython.org>
Fri, 21 Aug 2020 17:11:56 +0000 (10:11 -0700)
committerBob Halley <halley@dnspython.org>
Fri, 21 Aug 2020 17:11:56 +0000 (10:11 -0700)
dns/message.py

index 5a0311800115501d8622272184b42bcfcc3b4b13..ea71a457c634cfa0711f7067ecedd19fc84f46b3 100644 (file)
@@ -1087,7 +1087,7 @@ class _TextReader:
         self.id = None
         self.edns = -1
         self.ednsflags = 0
-        self.payload = None
+        self.payload = DEFAULT_EDNS_PAYLOAD
         self.rcode = None
         self.opcode = dns.opcode.QUERY
         self.flags = 0