diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-02-12 07:38:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-02-12 07:38:04 +0000 |
commit | dcaa768e2e8eeebdbc124b5c899b36a9b0a52024 (patch) | |
tree | b186cc1a73d80e41290a66c62dfe6433c359dfd9 /inet/inet_net.c | |
parent | e87f0c3347747708c65f0d9f54d3fb1895fb4162 (diff) | |
download | glibc-dcaa768e2e8eeebdbc124b5c899b36a9b0a52024.tar glibc-dcaa768e2e8eeebdbc124b5c899b36a9b0a52024.tar.gz glibc-dcaa768e2e8eeebdbc124b5c899b36a9b0a52024.tar.bz2 glibc-dcaa768e2e8eeebdbc124b5c899b36a9b0a52024.zip |
(inet_network): Add missing part of last patch.
Diffstat (limited to 'inet/inet_net.c')
-rw-r--r-- | inet/inet_net.c | 2 |
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++) { |