diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2014-10-06 13:12:04 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2014-10-06 13:12:04 +0000 |
commit | 74e2e29fbe295ed07f2bdc2032a88c60db6b0ab9 (patch) | |
tree | 32f34abdb935572a0752a0802a4fd9d984d05bd0 | |
parent | 0932f97e01f90cbd937325daa0e8f6f1553a8383 (diff) |
Notes
-rw-r--r-- | sys/netinet/udp_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 20e4534539a6..a3a365a0e976 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1006,7 +1006,7 @@ udp_ctloutput(struct socket *so, struct sockopt *sopt) INP_WLOCK(inp); up = intoudpcb(inp); KASSERT(up != NULL, ("%s: up == NULL", __func__)); - if (optval != 0 && optval < 8) { + if ((optval != 0 && optval < 8) || (optval > 65535)) { INP_WUNLOCK(inp); error = EINVAL; break; |