summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_jail.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r--sys/kern/kern_jail.c2
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;
OpenPOWER on IntegriCloud