HomeFreeBSD

When converting the static arrays to mallocarray() in r356621 I missed

Description

When converting the static arrays to mallocarray() in r356621 I missed
one place where we now need to multiply the size of the struct with the
number of entries. This lead to problems when restarting user space
daemons, as the cleanup was never properly done, resulting in MRT_ADD_VIF
EADDRINUSE.
Properly zero all array elements to avoid this problem.

PR: 246629, 206583
Reported by: (many)
MFC after: 4 days
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")

Details

Provenance
bzAuthored on
Parents
rS362288: The call into ifa_ifwithaddr() needs to be epoch protected; ortherwise
Branches
Unknown
Tags
Unknown