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:
Robert Watson 2006-08-02 14:30:58 +00:00
parent 6b04b7f63e
commit f8b20fb6d6

View File

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