summaryrefslogtreecommitdiff
path: root/src/lib/libc/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net')
-rw-r--r--src/lib/libc/net/ip6opt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/ip6opt.c b/src/lib/libc/net/ip6opt.c
index 71dfe55803..d6406c3aed 100644
--- a/src/lib/libc/net/ip6opt.c
+++ b/src/lib/libc/net/ip6opt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ip6opt.c,v 1.8 2015/01/16 16:48:51 deraadt Exp $ */ 1/* $OpenBSD: ip6opt.c,v 1.9 2017/04/27 23:52:35 millert Exp $ */
2/* $KAME: ip6opt.c,v 1.18 2005/06/15 07:11:35 keiichi Exp $ */ 2/* $KAME: ip6opt.c,v 1.18 2005/06/15 07:11:35 keiichi Exp $ */
3 3
4/* 4/*
@@ -105,7 +105,7 @@ inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type,
105 * The option data length must have a value between 0 and 255, 105 * The option data length must have a value between 0 and 255,
106 * inclusive, and is the length of the option data that follows. 106 * inclusive, and is the length of the option data that follows.
107 */ 107 */
108 if (len < 0 || len > 255) 108 if (len > 255)
109 return (-1); 109 return (-1);
110 110
111 /* 111 /*