diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-11-14 18:07:50 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2003-11-14 18:07:50 +0000 |
| commit | 2daa2369f09f5413dcff8e97f1b1a59813a131d7 (patch) | |
| tree | 6b809af3133177d869430a8d41984af68ebd5f38 /lib/libc/net/ip6opt.c | |
| parent | 3c2ef4e7e291b11de80cdab1dfe3ac7abd72ef54 (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/ip6opt.c')
| -rw-r--r-- | lib/libc/net/ip6opt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/net/ip6opt.c b/lib/libc/net/ip6opt.c index d0122e20ad18..73f7e3af57ab 100644 --- a/lib/libc/net/ip6opt.c +++ b/lib/libc/net/ip6opt.c @@ -113,8 +113,6 @@ inet6_option_append(cmsg, typep, multx, plusy) return(-1); if (plusy < 0 || plusy > 7) return(-1); - if (typep[0] > 255) - return(-1); /* * If this is the first option, allocate space for the @@ -422,7 +420,7 @@ inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type, * The option type must have a value from 2 to 255, inclusive. * (0 and 1 are reserved for the Pad1 and PadN options, respectively.) */ - if (type < 2 || type > 255) + if (type < 2) return(-1); /* |
