summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/ip6opt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/ip6opt.c')
-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 a467758..2f0c51d 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);
/*
OpenPOWER on IntegriCloud