]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Fix APL trailing zero suppression.
authorBob Halley <halley@dnspython.org>
Tue, 13 Aug 2013 16:46:55 +0000 (09:46 -0700)
committerBob Halley <halley@dnspython.org>
Tue, 13 Aug 2013 16:46:55 +0000 (09:46 -0700)
This was a part of the port to python3 that got missed... chr(0) != 0.

dns/rdtypes/IN/APL.py

index bc3748b7ec043b9064f6e631fc4d1eeac69bfa84..a7b8510d2f5a75ad38d199afa78a30522d82f33b 100644 (file)
@@ -61,7 +61,7 @@ class APLItem(object):
         #
         last = 0
         for i in range(len(address) - 1, -1, -1):
-            if address[i] != chr(0):
+            if address[i] != 0:
                 last = i + 1
                 break
         address = address[0 : last]