Date: Tue, 30 Dec 2008 17:54:25 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186606 - head/sys/kern Message-ID: <200812301754.mBUHsPjR000381@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812301754.mBUHsPjR000381>