summaryrefslogtreecommitdiff
path: root/resolv/inet_addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/inet_addr.c')
-rw-r--r--resolv/inet_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/inet_addr.c b/resolv/inet_addr.c
index 68f63101a2..60f0cbe3b4 100644
--- a/resolv/inet_addr.c
+++ b/resolv/inet_addr.c
@@ -168,7 +168,7 @@ inet_aton(cp, addr)
* a.b.c (with c treated as 16 bits)
* a.b (with b treated as 24 bits)
*/
- if (pp >> res.bytes + 3
+ if (pp > res.bytes + 3
|| val > 0xff)
goto ret_0;
*pp++ = val;