diff options
author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2005-04-20 02:57:56 +0000 |
---|---|---|
committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2005-04-20 02:57:56 +0000 |
commit | 96a041b533fc8fa37f3e44d8be907ff863eef55a (patch) | |
tree | 3035d3e2e658dde83ed62dd21612dd2d41eb57da | |
parent | a378bbabe672f74ef679f914487ffc2480aad9d6 (diff) |
Notes
-rw-r--r-- | sys/kern/uipc_usrreq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index e3ebf9ba9cc9..327026df0938 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -617,6 +617,9 @@ uipc_ctloutput(struct socket *so, struct sockopt *sopt) struct xucred xu; int error, optval; + if (sopt->sopt_level != 0) + return (EINVAL); + UNP_LOCK(); unp = sotounpcb(so); if (unp == NULL) { |