1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00

Fix jails.

This commit is contained in:
Poul-Henning Kamp 2001-02-28 09:38:48 +00:00
parent 872880c2c0
commit 970680fad8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73217

View File

@ -246,6 +246,9 @@ in_pcbbind(inp, nam, p)
return (EADDRINUSE);
}
}
if (prison &&
prison_ip(p->p_ucred, 0, &sin->sin_addr.s_addr))
return (EADDRNOTAVAIL);
t = in_pcblookup_local(pcbinfo, sin->sin_addr,
lport, prison ? 0 : wild);
if (t &&