diff options
author | bz <bz@FreeBSD.org> | 2008-11-29 16:17:39 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-29 16:17:39 +0000 |
commit | 817305efd56ce8d12b11dad03e764667f4335c62 (patch) | |
tree | c0cadfabecadf0d593348fb9474e94210552f981 /sys/kern/kern_jail.c | |
parent | 1500739dba91231c16c1f8acc694cb00f375cae3 (diff) | |
download | FreeBSD-src-817305efd56ce8d12b11dad03e764667f4335c62.zip FreeBSD-src-817305efd56ce8d12b11dad03e764667f4335c62.tar.gz |
Unbreak the no-networks (no INET/6) build that I broke with
the commit in r185435.
Pointyhat: no, but I could need a ski cap for the winter
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r-- | sys/kern/kern_jail.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index b453d58..e4a027c 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -532,11 +532,13 @@ kern_jail(struct thread *td, struct jail *j) sx_xlock(&allprison_lock); /* Make sure we cannot run into problems with ambiguous bind()ings. */ +#if defined(INET) || defined(INET6) error = prison_check_conflicting_ips(pr); if (error) { sx_xunlock(&allprison_lock); goto e_dropcpuset; } +#endif /* Determine next pr_id and add prison to allprison list. */ tryprid = lastprid + 1; |