diff options
author | Zhongqiu Duan <dzq.aishenghu0@gmail.com> | 2025-03-19 14:29:27 +0000 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2025-03-19 16:00:29 +0100 |
commit | a7dfa49d34c76a420778a6fce2b5e7d85f0c8b1a (patch) | |
tree | 32b58a153de60e7c43944540d4a773744bf205a4 | |
parent | dba1b687a9a7d98d874307c37de3d9544a3e6acb (diff) |
expr: ct: print key name of id field
Fixes: 005369151ed5 ("include: updated nf_tables.h")
Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | src/expr/ct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/ct.c b/src/expr/ct.c index b01fbc5..71dbaf9 100644 --- a/src/expr/ct.c +++ b/src/expr/ct.c @@ -171,7 +171,7 @@ static const char *ctkey2str_array[NFT_CT_MAX + 1] = { static const char *ctkey2str(uint32_t ctkey) { - if (ctkey >= NFT_CT_MAX) + if (ctkey > NFT_CT_MAX) return "unknown"; return ctkey2str_array[ctkey]; |