diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 0059b8f8df62..cb59a189e8f1 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -293,7 +293,8 @@ jail_copyin_ips(struct jail *j) } j->ip4 = ip4; - } + } else + j->ip4 = NULL; #endif #ifdef INET6 if (j->ip6s > 0) { @@ -320,7 +321,8 @@ jail_copyin_ips(struct jail *j) } j->ip6 = ip6; - } + } else + j->ip6 = NULL; #endif return (0);