diff options
-rw-r--r-- | sys/netinet/libalias/alias_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/libalias/alias_proxy.c b/sys/netinet/libalias/alias_proxy.c index 11e17ca..b3185cc 100644 --- a/sys/netinet/libalias/alias_proxy.c +++ b/sys/netinet/libalias/alias_proxy.c @@ -173,7 +173,7 @@ inet_aton(cp, addr) l = strtoul(c, &endptr, 0); - if (l == ULONG_MAX || l == 0) + if (l == ULONG_MAX || (l == 0 && endptr == c)) return (0); val = (in_addr_t)l; |