Rather than zeroing MAXVIFS times size of pointer [r362289] (still better than

sizeof pointer before [r354857]), we need to zero MAXVIFS times the size of
the struct.  All good things come in threes; I hope this is it on this one.

PR:		246629, 206583
Reported by:	kib
MFC after:	ASAP
This commit is contained in:
Bjoern A. Zeeb 2020-06-21 22:09:30 +00:00
parent 9aeca21324
commit e387af1fa8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362472

View File

@ -740,7 +740,7 @@ X_ip_mrouter_done(void)
if_allmulti(ifp, 0);
}
}
bzero((caddr_t)V_viftable, sizeof(V_viftable) * MAXVIFS);
bzero((caddr_t)V_viftable, sizeof(*V_viftable) * MAXVIFS);
V_numvifs = 0;
V_pim_assert_enabled = 0;