svn commit: r296649 - stable/10/sys/netpfil/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Fri Mar 11 09:41:48 UTC 2016


Author: ae
Date: Fri Mar 11 09:41:46 2016
New Revision: 296649
URL: https://svnweb.freebsd.org/changeset/base/296649

Log:
  MFC r296348:
    Use correct size for malloc.

Modified:
  stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c
==============================================================================
--- stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c	Fri Mar 11 06:07:09 2016	(r296648)
+++ stable/10/sys/netpfil/ipfw/ip_fw_dynamic.c	Fri Mar 11 09:41:46 2016	(r296649)
@@ -487,7 +487,7 @@ resize_dynamic_table(struct ip_fw_chain 
 	    V_curr_dyn_buckets, nbuckets);
 
 	/* Allocate and initialize new hash */
-	dyn_v = malloc(nbuckets * sizeof(ipfw_dyn_rule), M_IPFW,
+	dyn_v = malloc(nbuckets * sizeof(*dyn_v), M_IPFW,
 	    M_WAITOK | M_ZERO);
 
 	for (i = 0 ; i < nbuckets; i++)


More information about the svn-src-stable-10 mailing list