]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - lib/ip.c
Unit Testing for BIRD
[thirdparty/bird.git] / lib / ip.c
index 5e039c12c65cedaa02b34bf81bcfd759341f95d1..9497248c3a1dacb82c1b7c3258cadf2757da400f 100644 (file)
--- a/lib/ip.c
+++ b/lib/ip.c
@@ -306,7 +306,7 @@ ip6_pton(const char *a, ip6_addr *o)
 
     if (*a == ':' && a[1])
       a++;
-    else if (*a == '.' && (i == 6 || i < 6 && hfil >= 0))
+    else if (*a == '.' && (i == 6 || (i < 6 && hfil >= 0)))
     {                          /* Embedded IPv4 address */
       ip4_addr x;
       if (!ip4_pton(start, &x))