Remove now unneeded ENOTCONN clause from SOCK_DGRAM side of uipc_send():
we have to check it regardless of the target address, so don't check it twice.
This commit is contained in:
parent
6b04b7f63e
commit
f8b20fb6d6
@ -599,11 +599,6 @@ uipc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
|
||||
error = unp_connect(so, nam, td);
|
||||
if (error)
|
||||
break;
|
||||
} else {
|
||||
if (unp->unp_conn == NULL) {
|
||||
error = ENOTCONN;
|
||||
break;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Because connect() and send() are non-atomic in a sendto()
|
||||
|
Loading…
x
Reference in New Issue
Block a user