diff options
author | pho <pho@FreeBSD.org> | 2008-12-30 17:54:25 +0000 |
---|---|---|
committer | pho <pho@FreeBSD.org> | 2008-12-30 17:54:25 +0000 |
commit | 6e2644b3115695e0e7b5f4812b3d71db58b4e703 (patch) | |
tree | 5d8840da5cf5e3ea56a4486f3ee70c5168aa86af /sys/kern/kern_jail.c | |
parent | 73a12ed27407e98a8036f5db6b49bc5b016b18ad (diff) | |
download | FreeBSD-src-6e2644b3115695e0e7b5f4812b3d71db58b4e703.zip FreeBSD-src-6e2644b3115695e0e7b5f4812b3d71db58b4e703.tar.gz |
Make sure that unused j->ip[46] are cleared
Reviewed by: bz
Approved by: kib (mentor)
Diffstat (limited to 'sys/kern/kern_jail.c')
-rw-r--r-- | sys/kern/kern_jail.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 0059b8f..cb59a18 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); |