diff options
author | phk <phk@FreeBSD.org> | 2000-09-17 13:34:18 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-09-17 13:34:18 +0000 |
commit | 1d9c0d533ed967bcd9dae861e179bc2a9c474733 (patch) | |
tree | 1625688439b13577b45642dcbff11238da9850bd /sys | |
parent | 95ec42afde6869492a2af5d4d2e80b7d5dbf3448 (diff) | |
download | FreeBSD-src-1d9c0d533ed967bcd9dae861e179bc2a9c474733.zip FreeBSD-src-1d9c0d533ed967bcd9dae861e179bc2a9c474733.tar.gz |
Reverse last commit, a better fix has been found.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 6a86879..07b1166 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -827,15 +827,10 @@ udp_connect(struct socket *so, struct sockaddr *nam, struct proc *p) return EINVAL; if (inp->inp_faddr.s_addr != INADDR_ANY) return EISCONN; - error = 0; s = splnet(); - if (inp->inp_laddr.s_addr == INADDR_ANY && p->p_prison != NULL) - error = in_pcbbind(inp, NULL, p); - if (error == 0) { - sin = (struct sockaddr_in *)nam; - prison_remote_ip(p, 0, &sin->sin_addr.s_addr); - error = in_pcbconnect(inp, nam, p); - } + sin = (struct sockaddr_in *)nam; + prison_remote_ip(p, 0, &sin->sin_addr.s_addr); + error = in_pcbconnect(inp, nam, p); splx(s); if (error == 0) soisconnected(so); |