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 cb59a18..aaa1287 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -329,9 +329,11 @@ jail_copyin_ips(struct jail *j)
e_free_ip:
#ifdef INET6
free(ip6, M_PRISON);
+ j->ip6 = NULL;
#endif
#ifdef INET
free(ip4, M_PRISON);
+ j->ip4 = NULL;
#endif
return (error);
}
OpenPOWER on IntegriCloud