summary refs log tree commit diff
path: root/inet/inet_net.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-02-12 07:38:04 +0000
committerUlrich Drepper <drepper@redhat.com>2000-02-12 07:38:04 +0000
commitdcaa768e2e8eeebdbc124b5c899b36a9b0a52024 (patch)
treeb186cc1a73d80e41290a66c62dfe6433c359dfd9 /inet/inet_net.c
parente87f0c3347747708c65f0d9f54d3fb1895fb4162 (diff)
downloadglibc-dcaa768e2e8eeebdbc124b5c899b36a9b0a52024.tar.gz
glibc-dcaa768e2e8eeebdbc124b5c899b36a9b0a52024.tar.xz
glibc-dcaa768e2e8eeebdbc124b5c899b36a9b0a52024.zip
(inet_network): Add missing part of last patch.
Diffstat (limited to 'inet/inet_net.c')
-rw-r--r--inet/inet_net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inet/inet_net.c b/inet/inet_net.c
index 78d22cda6b..e9331c5926 100644
--- a/inet/inet_net.c
+++ b/inet/inet_net.c
@@ -83,6 +83,8 @@ again:
 	}
 	if (*cp && !isspace(*cp))
 		return (INADDR_NONE);
+	if (pp >= parts + 4 || val > 0xff)
+		return (INADDR_NONE);
 	*pp++ = val;
 	n = pp - parts;
 	for (val = 0, i = 0; i < n; i++) {