diff options
author | Bob Halley <halley@dnspython.org> | 2020-05-23 13:58:34 -0700 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2020-05-23 13:58:34 -0700 |
commit | 9b641b5fbf5122ceb81f1f529b74793c3c9515f1 (patch) | |
tree | 6b975568ad4c95da0c2708544652b29e29bb423b /dns | |
parent | 16a01efa0398eef6d4c348789cc3baf8212acedf (diff) | |
download | dnspython-9b641b5fbf5122ceb81f1f529b74793c3c9515f1.tar.gz |
leading zero detection in dns.ipv4.inet_aton() was broken
Diffstat (limited to 'dns')
-rw-r--r-- | dns/ipv4.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/ipv4.py b/dns/ipv4.py index 9d4370b..e1f38d3 100644 --- a/dns/ipv4.py +++ b/dns/ipv4.py @@ -50,7 +50,7 @@ def inet_aton(text): for part in parts: if not part.isdigit(): raise dns.exception.SyntaxError - if len(part) > 1 and part[0] == '0': + if len(part) > 1 and part[0] == ord('0'): # No leading zeros raise dns.exception.SyntaxError try: |