svn commit: r296650 - stable/9/sys/netpfil/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Fri Mar 11 09:55:25 UTC 2016


Author: ae
Date: Fri Mar 11 09:55:24 2016
New Revision: 296650
URL: https://svnweb.freebsd.org/changeset/base/296650

Log:
  MFC r296348:
    Use correct size for malloc.

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

Modified: stable/9/sys/netpfil/ipfw/ip_fw_dynamic.c
==============================================================================
--- stable/9/sys/netpfil/ipfw/ip_fw_dynamic.c	Fri Mar 11 09:41:46 2016	(r296649)
+++ stable/9/sys/netpfil/ipfw/ip_fw_dynamic.c	Fri Mar 11 09:55:24 2016	(r296650)
@@ -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-all mailing list