sync with OpenBSD -current

This commit is contained in:
purplerain 2024-03-18 00:01:54 +00:00
parent 9adc065819
commit 710bf2c3ae
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
13 changed files with 149 additions and 52 deletions

View file

@ -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);