summaryrefslogtreecommitdiff
path: root/dns/ipv6.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2013-04-26 13:03:42 +0100
committerBob Halley <halley@dnspython.org>2013-04-26 13:03:42 +0100
commitdaa371c882ae009ff023175f6e74c572ff2a6e0f (patch)
treebca3832cd5472c7e8a32a0201339b8a3e1a14ebc /dns/ipv6.py
parent3950b2a88e7204a874c0a72aae120355bb755db9 (diff)
downloaddnspython-daa371c882ae009ff023175f6e74c572ff2a6e0f.tar.gz
In dns.ipv6.inet_ntoa(), do not use :: to shorten just one 16-bit 0 field
Diffstat (limited to 'dns/ipv6.py')
-rw-r--r--dns/ipv6.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/ipv6.py b/dns/ipv6.py
index 69db34a..1ab00da 100644
--- a/dns/ipv6.py
+++ b/dns/ipv6.py
@@ -72,7 +72,7 @@ def inet_ntoa(address):
if current_len > best_len:
best_start = start
best_len = current_len
- if best_len > 0:
+ if best_len > 1:
if best_start == 0 and \
(best_len == 6 or
best_len == 5 and chunks[5] == 'ffff'):