netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libnftnl] expr: ct: print key name of id field
@ 2025-03-19 14:29 Zhongqiu Duan
  2025-03-19 15:01 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: Zhongqiu Duan @ 2025-03-19 14:29 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Zhongqiu Duan

Fixes: 005369151ed5 ("include: updated nf_tables.h")
Signed-off-by: Zhongqiu Duan <dzq.aishenghu0@gmail.com>
---
 src/expr/ct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/expr/ct.c b/src/expr/ct.c
index 1c46dd97ba6c..8f8c2a6e7371 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];
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-19 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 14:29 [PATCH libnftnl] expr: ct: print key name of id field Zhongqiu Duan
2025-03-19 15:01 ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).