For non-listening AF_UNIX sockets return error code EOPNOTSUPP to match
documentation and SUS.
This commit is contained in:
parent
ab5cda71df
commit
beb4b31200
@ -743,6 +743,9 @@ uipc_listen(struct socket *so, int backlog, struct thread *td)
|
||||
struct unpcb *unp;
|
||||
int error;
|
||||
|
||||
if (so->so_type != SOCK_STREAM && so->so_type != SOCK_SEQPACKET)
|
||||
return (EOPNOTSUPP);
|
||||
|
||||
unp = sotounpcb(so);
|
||||
KASSERT(unp != NULL, ("uipc_listen: unp == NULL"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user