summaryrefslogtreecommitdiff
path: root/lib/ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ip.c')
-rw-r--r--lib/ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ip.c b/lib/ip.c
index 01edf0d5..e1bfba49 100644
--- a/lib/ip.c
+++ b/lib/ip.c
@@ -246,7 +246,7 @@ ip4_pton(char *a, ip4_addr *o)
if (!c != !i)
return 0;
l = strtoul(a, &d, 10);
- if (d != c && *d || l > 255)
+ if (((d != c) && *d) || (l > 255))
return 0;
ia = (ia << 8) | l;
if (c)