aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-02-27 01:59:29 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-02-27 01:59:29 +0000
commit7c498a095084555deb0207b6421cabac832919cb (patch)
treef42170930eb569a2e4fd6351025fedc915458003 /lib/libc/net
parentfec642add7bab1e7e062a15acd552ac3ee227459 (diff)
Notes
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/ip6opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/ip6opt.c b/lib/libc/net/ip6opt.c
index a467758de199..2f0c51d3d74b 100644
--- a/lib/libc/net/ip6opt.c
+++ b/lib/libc/net/ip6opt.c
@@ -419,7 +419,7 @@ inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type,
* The option data length must have a value between 0 and 255,
* inclusive, and is the length of the option data that follows.
*/
- if (len < 0 || len > 255)
+ if (len > 255 || len < 0 )
return(-1);
/*