diff options
author | Bob Halley <halley@nominum.com> | 2009-06-19 13:11:53 +0100 |
---|---|---|
committer | Bob Halley <halley@nominum.com> | 2009-06-19 13:11:53 +0100 |
commit | 2fed04fe676122dc3005a5460004897bddae39f1 (patch) | |
tree | 10ec3771b881cd7c17275d78821a7560834d757b | |
parent | caf73deaf6b1d11f8b2ba162680c35bcd084668f (diff) | |
download | dnspython-2fed04fe676122dc3005a5460004897bddae39f1.tar.gz |
Handle negative prerequisites
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | dns/message.py | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,9 @@ 2009-06-19 Bob Halley <halley@dnspython.org> + * Negative prerequisites were not handled correctly in _get_section(). + +2009-06-19 Bob Halley <halley@dnspython.org> + * (Version 1.7.0 released) 2009-06-19 Bob Halley <halley@dnspython.org> diff --git a/dns/message.py b/dns/message.py index d30e9c8..eec9acb 100644 --- a/dns/message.py +++ b/dns/message.py @@ -671,7 +671,9 @@ class _WireReader(object): rdclass = self.zone_rdclass else: deleting = None - if deleting == dns.rdataclass.ANY: + if deleting == dns.rdataclass.ANY or \ + (deleting == dns.rdataclass.NONE and \ + section == self.message.answer): covers = dns.rdatatype.NONE rd = None else: |