Date: Fri, 11 Mar 2016 09:55:24 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r296650 - stable/9/sys/netpfil/ipfw Message-ID: <201603110955.u2B9tOWL055397@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603110955.u2B9tOWL055397>