summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2016-03-03 13:07:59 +0000
committerae <ae@FreeBSD.org>2016-03-03 13:07:59 +0000
commit9b6c24e7cf665f854e692b5803db1f5af1b363d7 (patch)
treedfa002a752d0cc540f407095b2ff05408be528a2 /sys/netpfil
parente1c5b02269f9183f4c185346c26ce54776d111b9 (diff)
downloadFreeBSD-src-9b6c24e7cf665f854e692b5803db1f5af1b363d7.zip
FreeBSD-src-9b6c24e7cf665f854e692b5803db1f5af1b363d7.tar.gz
Use correct size for malloc.
Obtained from: Yandex LLC MFC after: 1 week
Diffstat (limited to 'sys/netpfil')
-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 9db59a2..96f38e4 100644
--- a/sys/netpfil/ipfw/ip_fw_dynamic.c
+++ b/sys/netpfil/ipfw/ip_fw_dynamic.c
@@ -505,7 +505,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