]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
* bugfix #507: ldnsx Fix use of non-existent variables and not
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 23 Jul 2013 07:55:49 +0000 (09:55 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 23 Jul 2013 07:55:49 +0000 (09:55 +0200)
  properly referring to instance variable.  Patch from shussain.

Changelog
contrib/ldnsx/ldnsx.py

index efe7b9c7d899f764eb313d5bf7a9fa91a644ab57..15cdbed10e442f3f90f791f26969e7e7f64d3792 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -24,6 +24,8 @@
          zone to be an NSEC3 (or its RRSIG) covering an empty non terminal.
        * New functions: ldns_pkt_ixfr_request_new and
          ldns_pkt_ixfr_request_new_frm_str.
+       * bugfix #507: ldnsx Fix use of non-existent variables and not
+         properly referring to instance variable.  Patch from shussain.
 
 1.6.16 2012-11-13
        * Fix Makefile to build pyldns with BSD make
index ee81b2fdaab2cab792d01db4cbc54e24846935c3..b61a9e7221c071b962ad62fec44dfdbce799367c 100644 (file)
@@ -132,9 +132,9 @@ def secure_query(name, rr_type, rr_class="IN", flags=["RD"], tries = 1, flex=Fal
                raise Exception("%s lookup failed (server error or dnssec validation failed)" % name)
        if pkt.rcode() == "NXDOMAIN":
                if "AD" in pkt.flags():
-                       raise Exception("%s lookup failed (non-existence proven by DNSSEC)" % hostname )
+                       raise Exception("%s lookup failed (non-existence proven by DNSSEC)" % name )
                else:
-                       raise Exception("%s lookup failed" % hostname )
+                       raise Exception("%s lookup failed" % name )
        if pkt.rcode() == "NOERROR":
                if "AD" not in pkt.flags():
                        if not flex:
@@ -698,7 +698,7 @@ class resource_record:
 
        def __len__(self):
                try:
-                       return len(_rdfs)
+                       return len(self._rdfs)
                except:
                        return 0