Make sure that unused j->ip[46] are cleared
Reviewed by: bz Approved by: kib (mentor)
This commit is contained in:
parent
81d1f5e232
commit
bc971b2c82
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user