From 82a7bfdb12649b2a1c99b072e35b7d5102f327c8 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sun, 4 Mar 2001 17:11:25 +0000 Subject: * resolv/tst-aton.c: Add testcase for IP with four points. * resolv/inet_addr.c: Don't recognize an IP with four points. Patch by Andre' Breiler . --- resolv/inet_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resolv/inet_addr.c') diff --git a/resolv/inet_addr.c b/resolv/inet_addr.c index 59e160e..83f2ec6 100644 --- a/resolv/inet_addr.c +++ b/resolv/inet_addr.c @@ -183,7 +183,7 @@ __inet_aton(const char *cp, struct in_addr *addr) { * a.b.c (with c treated as 16 bits) * a.b (with b treated as 24 bits) */ - if (pp > res.bytes + 3 || val > 0xff) + if (pp > res.bytes + 2 || val > 0xff) goto ret_0; *pp++ = val; c = *++cp; -- cgit v1.1