| version 1.123, 2006/10/02 00:02:04 |
version 1.124, 2006/10/02 09:22:34 |
| Line 722 sodisconnect(struct socket *so) |
|
| Line 722 sodisconnect(struct socket *so) |
|
| int s, error; |
int s, error; |
| |
|
| s = splsoftnet(); |
s = splsoftnet(); |
| |
if (so->so_cred != NULL) |
| |
kauth_cred_free(so->so_cred); |
| if ((so->so_state & SS_ISCONNECTED) == 0) { |
if ((so->so_state & SS_ISCONNECTED) == 0) { |
| error = ENOTCONN; |
error = ENOTCONN; |
| goto bad; |
goto bad; |
| Line 730 sodisconnect(struct socket *so) |
|
| Line 732 sodisconnect(struct socket *so) |
|
| error = EALREADY; |
error = EALREADY; |
| goto bad; |
goto bad; |
| } |
} |
| if (so->so_cred != NULL) |
|
| kauth_cred_free(so->so_cred); |
|
| error = (*so->so_proto->pr_usrreq)(so, PRU_DISCONNECT, |
error = (*so->so_proto->pr_usrreq)(so, PRU_DISCONNECT, |
| (struct mbuf *)0, (struct mbuf *)0, (struct mbuf *)0, |
(struct mbuf *)0, (struct mbuf *)0, (struct mbuf *)0, |
| (struct lwp *)0); |
(struct lwp *)0); |