]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When converting the static arrays to mallocarray() in r356621 I missed
authorbz <bz@FreeBSD.org>
Wed, 17 Jun 2020 21:04:38 +0000 (21:04 +0000)
committerbz <bz@FreeBSD.org>
Wed, 17 Jun 2020 21:04:38 +0000 (21:04 +0000)
commitb98bbd34dc6c0364a6a822393895109b2bdad2c3
tree8bc9b439cb9ece95e284232453a2ac0ab1eff86c
parent3f6e4826370c767e7fb756c3ddcb95c0da425a20
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")
sys/netinet/ip_mroute.c