summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-monitor.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-06-14 17:44:47 +0200
committerPhil Sutter <phil@nwl.cc>2022-06-21 18:29:31 +0200
commit2ce0014750c0afc06a87479462746ed113736025 (patch)
tree090b7f6977e133ce338b0349987cb3f17c1ddf24 /iptables/xtables-monitor.c
parent15a31ba8e8e146a5dafce59160b2eeefb00bccca (diff)
nft: Exit if nftnl_alloc_expr fails
In some code-paths, 'reg' pointer remaining uninitialized is used later so at least minimal error checking is necessary. Given that a call to nftnl_alloc_expr() with sane argument should never fail, complain and exit if it happens. Fixes: 7e38890c6b4fb ("nft: prepare for dynamic register allocation") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-monitor.c')
0 files changed, 0 insertions, 0 deletions