sync with OpenBSD -current
This commit is contained in:
parent
9adc065819
commit
710bf2c3ae
13 changed files with 149 additions and 52 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: uipc_usrreq.c,v 1.200 2023/11/28 09:29:20 jsg Exp $ */
|
||||
/* $OpenBSD: uipc_usrreq.c,v 1.201 2024/03/17 19:47:08 mvs Exp $ */
|
||||
/* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -415,6 +415,8 @@ uipc_listen(struct socket *so)
|
|||
{
|
||||
struct unpcb *unp = sotounpcb(so);
|
||||
|
||||
if (unp->unp_flags & (UNP_BINDING | UNP_CONNECTING))
|
||||
return (EINVAL);
|
||||
if (unp->unp_vnode == NULL)
|
||||
return (EINVAL);
|
||||
return (0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue