diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |