Make sure that unused j->ip[46] are cleared

Reviewed by:	bz
Approved by:	kib (mentor)
This commit is contained in:
Peter Holm 2008-12-30 17:54:25 +00:00
parent 81d1f5e232
commit bc971b2c82

View File

@ -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);