diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2008-12-14 16:47:21 +0000 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2008-12-14 16:47:21 +0000 |
commit | 9aeb4147cccc048baca125d0a667bd69f88c8b83 (patch) | |
tree | 7386f2de4bcfd0ca40f12f004009bb6882c6fcfc /lib/libc/inet/inet_network.c | |
parent | 4117715965534416fa304d20902d62bd83e56bd7 (diff) |
Diffstat (limited to 'lib/libc/inet/inet_network.c')
-rw-r--r-- | lib/libc/inet/inet_network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/inet/inet_network.c b/lib/libc/inet/inet_network.c index 4758a00f2651..47976cff68d8 100644 --- a/lib/libc/inet/inet_network.c +++ b/lib/libc/inet/inet_network.c @@ -84,9 +84,9 @@ again: } if (!digit) return (INADDR_NONE); + if (pp >= parts + 4 || val > 0xffU) + return (INADDR_NONE); if (*cp == '.') { - if (pp >= parts + 4 || val > 0xffU) - return (INADDR_NONE); *pp++ = val, cp++; goto again; } |