]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Fix linting change that caused the wrong qname to be used when
authorBob Halley <halley@dnspython.org>
Mon, 26 Sep 2016 15:45:37 +0000 (08:45 -0700)
committerBob Halley <halley@dnspython.org>
Mon, 26 Sep 2016 15:45:37 +0000 (08:45 -0700)
contructing the Answer object, which caused everything to be not found.
[Issue #206]

dns/resolver.py

index d20f80bc0ea716d2d018fbfe6d15e0644fb91e16..f6ab64f6e68e9d2de5f8a7544c3f69334c80cbce 100644 (file)
@@ -1048,10 +1048,10 @@ class Resolver(object):
             break
         if all_nxdomain:
             raise NXDOMAIN(qnames=qnames_to_try, responses=nxdomain_responses)
-        answer = Answer(qname, rdtype, rdclass, response,
+        answer = Answer(_qname, rdtype, rdclass, response,
                         raise_on_no_answer)
         if self.cache:
-            self.cache.put((qname, rdtype, rdclass), answer)
+            self.cache.put((_qname, rdtype, rdclass), answer)
         return answer
 
     def use_tsig(self, keyring, keyname=None,