summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-01-10 22:13:44 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-11-02 11:56:18 +0100
commit6c27573f57f66043c86ec576422645bb2e1a7769 (patch)
treeb8de430f76e511dab9c1127d042423ab249d1ac7 /src/netlink.c
parentdb3f9803b19e5f0356ebe6a6bd507288605c3924 (diff)
optimize: Clarify chain_optimize() array allocations
commit b83a0416cdc881c6ac35739cd858e4fe5fb2e04f upstream. Arguments passed to sizeof() where deemed suspicious by covscan due to the different type. Consistently specify size of an array 'a' using 'sizeof(*a) * nmemb'. For the statement arrays in stmt_matrix, even use xzalloc_array() since the item count is fixed and therefore can't be zero. Fixes: fb298877ece27 ("src: add ruleset optimization infrastructure") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/netlink.c')
0 files changed, 0 insertions, 0 deletions