summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-01-10 22:13:44 +0100
committerPhil Sutter <phil@nwl.cc>2023-01-13 17:11:18 +0100
commitb83a0416cdc881c6ac35739cd858e4fe5fb2e04f (patch)
tree141ed75b27159564cc9714630e13690950066b9a /src/netlink.c
parent798499bdcfd3a745027c77687275b6a3abdd952e (diff)
optimize: Clarify chain_optimize() array allocations
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