summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2016-03-11 09:41:46 +0000
committerae <ae@FreeBSD.org>2016-03-11 09:41:46 +0000
commite8f36718c8dbdeacf2fd9f7564f76499b4de341c (patch)
tree2692644430ce57c18ae90b4e3731e779128cf4f9
parent46f91bf27710fe8981f9f406587df65365dbc229 (diff)
downloadFreeBSD-src-e8f36718c8dbdeacf2fd9f7564f76499b4de341c.zip
FreeBSD-src-e8f36718c8dbdeacf2fd9f7564f76499b4de341c.tar.gz
MFC r296348:
Use correct size for malloc.
-rw-r--r--sys/netpfil/ipfw/ip_fw_dynamic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c
index 81c1b2c..ad957e9 100644
--- a/sys/netpfil/ipfw/ip_fw_dynamic.c
+++ b/sys/netpfil/ipfw/ip_fw_dynamic.c
@@ -487,7 +487,7 @@ resize_dynamic_table(struct ip_fw_chain *chain, int nbuckets)
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++)
OpenPOWER on IntegriCloud