diff --git a/scapy/volatile.py b/scapy/volatile.py
index <HASH>..<HASH> 100644
--- a/scapy/volatile.py
+++ b/scapy/volatile.py
@@ -295,7 +295,7 @@ class RandIP6(RandString):
                     remain = random.randint(0,remain)
                 for j in range(remain):
                     ip.append("%04x" % random.randint(0,65535))
-            if n == 0:
+            elif n == 0:
               ip.append("0")
             elif not n:
                 ip.append("")
RandIP6() with default '**' fails, this seems to do the right thing