svn commit: r362494 - stable/12/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Mon Jun 22 10:52:31 UTC 2020
Author: bz
Date: Mon Jun 22 10:52:30 2020
New Revision: 362494
URL: https://svnweb.freebsd.org/changeset/base/362494
Log:
MFC r362472:
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
Modified:
stable/12/sys/netinet/ip_mroute.c
Modified: stable/12/sys/netinet/ip_mroute.c
==============================================================================
--- stable/12/sys/netinet/ip_mroute.c Mon Jun 22 10:49:50 2020 (r362493)
+++ stable/12/sys/netinet/ip_mroute.c Mon Jun 22 10:52:30 2020 (r362494)
@@ -739,7 +739,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;
More information about the svn-src-all
mailing list