svn commit: r186606 - head/sys/kern
Peter Holm
pho at FreeBSD.org
Tue Dec 30 17:54:26 UTC 2008
Author: pho
Date: Tue Dec 30 17:54:25 2008
New Revision: 186606
URL: http://svn.freebsd.org/changeset/base/186606
Log:
Make sure that unused j->ip[46] are cleared
Reviewed by: bz
Approved by: kib (mentor)
Modified:
head/sys/kern/kern_jail.c
Modified: head/sys/kern/kern_jail.c
==============================================================================
--- head/sys/kern/kern_jail.c Tue Dec 30 17:36:32 2008 (r186605)
+++ head/sys/kern/kern_jail.c Tue Dec 30 17:54:25 2008 (r186606)
@@ -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);
More information about the svn-src-head
mailing list