summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2008-12-30 17:54:25 +0000
committerpho <pho@FreeBSD.org>2008-12-30 17:54:25 +0000
commit6e2644b3115695e0e7b5f4812b3d71db58b4e703 (patch)
tree5d8840da5cf5e3ea56a4486f3ee70c5168aa86af
parent73a12ed27407e98a8036f5db6b49bc5b016b18ad (diff)
downloadFreeBSD-src-6e2644b3115695e0e7b5f4812b3d71db58b4e703.zip
FreeBSD-src-6e2644b3115695e0e7b5f4812b3d71db58b4e703.tar.gz
Make sure that unused j->ip[46] are cleared
Reviewed by: bz Approved by: kib (mentor)
-rw-r--r--sys/kern/kern_jail.c6
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);
OpenPOWER on IntegriCloud