Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net Remove a check for a u_int8_t variable being gr...
details: https://anonhg.NetBSD.org/src/rev/79ca8a0d777a
branches: trunk
changeset: 526523:79ca8a0d777a
user: simonb <simonb%NetBSD.org@localhost>
date: Sun May 05 08:28:47 2002 +0000
description:
Remove a check for a u_int8_t variable being greater than 255.
diffstat:
lib/libc/net/ip6opt.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 7ce2ee7af0c7 -r 79ca8a0d777a lib/libc/net/ip6opt.c
--- a/lib/libc/net/ip6opt.c Sun May 05 08:23:03 2002 +0000
+++ b/lib/libc/net/ip6opt.c Sun May 05 08:28:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip6opt.c,v 1.8 2000/07/06 02:58:07 christos Exp $ */
+/* $NetBSD: ip6opt.c,v 1.9 2002/05/05 08:28:47 simonb Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: ip6opt.c,v 1.8 2000/07/06 02:58:07 christos Exp $");
+__RCSID("$NetBSD: ip6opt.c,v 1.9 2002/05/05 08:28:47 simonb Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -137,8 +137,6 @@
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
Home |
Main Index |
Thread Index |
Old Index