Be consistent and use bzero() instead of memset().
This commit is contained in:
parent
b3c9a01e5e
commit
9b3d77e7c9
@ -437,7 +437,7 @@ route_output(struct mbuf *m, struct socket *so)
|
||||
info.rti_info[RTAX_IFP] =
|
||||
ifaddr_byindex(ifp->if_index)->ifa_addr;
|
||||
if (jailed(so->so_cred)) {
|
||||
memset(&jail, 0, sizeof(jail));
|
||||
bzero(&jail, sizeof(jail));
|
||||
jail.sin_family = PF_INET;
|
||||
jail.sin_len = sizeof(jail);
|
||||
jail.sin_addr.s_addr =
|
||||
|
Loading…
x
Reference in New Issue
Block a user