diff options
author | phk <phk@FreeBSD.org> | 2001-02-28 09:38:48 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-02-28 09:38:48 +0000 |
commit | 78a2aff2905de561b6b44d831c06454293f80417 (patch) | |
tree | 31ab846474057ada55224686372bf8ea4d9c2e0e /sys/netinet/in_pcb.c | |
parent | 3fd57baf14c3fcfda2d3107a6546fc91ef64acaf (diff) | |
download | FreeBSD-src-78a2aff2905de561b6b44d831c06454293f80417.zip FreeBSD-src-78a2aff2905de561b6b44d831c06454293f80417.tar.gz |
Fix jails.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index d87b2a8..019a6e0 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -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 && |