From: Bob Halley Date: Fri, 21 Aug 2020 17:11:56 +0000 (-0700) Subject: do not call the OPT constructor with rdclass == None X-Git-Tag: v2.1.0rc1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c27f5a6e5265576d404d53afc1d175abaaf218a7;p=thirdparty%2Fdnspython.git do not call the OPT constructor with rdclass == None --- diff --git a/dns/message.py b/dns/message.py index 5a031180..ea71a457 100644 --- a/dns/message.py +++ b/dns/message.py @@ -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