diff options
| author | Maxim Konovalov <maxim@FreeBSD.org> | 2007-04-30 20:22:11 +0000 |
|---|---|---|
| committer | Maxim Konovalov <maxim@FreeBSD.org> | 2007-04-30 20:22:11 +0000 |
| commit | 38ec733c5334625d25a7bed7143cd150968e75a3 (patch) | |
| tree | 58a5cd0ad2f91056d9e7b877febc43f81902222a | |
| parent | 35e4f24d239d6367cd091b770691a821d59daae4 (diff) | |
Notes
| -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 11e17caf224d..b3185cc5cf9c 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; |
