summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2008-12-30 20:39:47 +0000
committerpho <pho@FreeBSD.org>2008-12-30 20:39:47 +0000
commit2f6e82c78d5ac2ced68539f96f166f460141cb3f (patch)
treebc92e1dfb1371a4449d5e2c6c59523ded6bbec44
parent0d4d24d449bc8e7ac0a2fa743d6c2121251f420e (diff)
downloadFreeBSD-src-2f6e82c78d5ac2ced68539f96f166f460141cb3f.zip
FreeBSD-src-2f6e82c78d5ac2ced68539f96f166f460141cb3f.tar.gz
Added missing second part of cleaning j->ip[46] as requested by bz
Approved by: kib (mentor) Pointy hat: pho
-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