diff options
author | Phil Sutter <phil@nwl.cc> | 2022-06-14 17:44:47 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-06-21 18:29:31 +0200 |
commit | 2ce0014750c0afc06a87479462746ed113736025 (patch) | |
tree | 090b7f6977e133ce338b0349987cb3f17c1ddf24 /include/xtables-version.h.in | |
parent | 15a31ba8e8e146a5dafce59160b2eeefb00bccca (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 'include/xtables-version.h.in')
0 files changed, 0 insertions, 0 deletions