From be0cf540585bc1680edb0b4b09ab794105444d68 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sat, 8 Jul 2006 01:04:28 +0000 Subject: [PATCH] Remove unnecessary check (u_int8_t is 0-255). --- lib/libc/net/ip6opt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/libc/net/ip6opt.c b/lib/libc/net/ip6opt.c index 54e277ab7d..5728b34f24 100644 --- a/lib/libc/net/ip6opt.c +++ b/lib/libc/net/ip6opt.c @@ -27,7 +27,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/lib/libc/net/ip6opt.c,v 1.1 1999/12/16 18:32:01 shin Exp $ - * $DragonFly: src/lib/libc/net/ip6opt.c,v 1.4 2005/11/13 02:04:47 swildner Exp $ + * $DragonFly: src/lib/libc/net/ip6opt.c,v 1.5 2006/07/08 01:04:28 swildner Exp $ */ #include @@ -104,8 +104,6 @@ inet6_option_append(struct cmsghdr *cmsg, const u_int8_t *typep, int multx, 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 -- 2.41.0