diff options
author | ae <ae@FreeBSD.org> | 2016-03-11 09:41:46 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2016-03-11 09:41:46 +0000 |
commit | e8f36718c8dbdeacf2fd9f7564f76499b4de341c (patch) | |
tree | 2692644430ce57c18ae90b4e3731e779128cf4f9 | |
parent | 46f91bf27710fe8981f9f406587df65365dbc229 (diff) | |
download | FreeBSD-src-e8f36718c8dbdeacf2fd9f7564f76499b4de341c.zip FreeBSD-src-e8f36718c8dbdeacf2fd9f7564f76499b4de341c.tar.gz |
MFC r296348:
Use correct size for malloc.
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_dynamic.c | 2 |
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++) |