Skip to contentSkip to conversation

evaluate: fix check for unknown in cmd_op_to_name

PATCH Superseded 谢致邦 (XIE Zhibang) 1 participant 1 message Feb 6, 2024 netfilter

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 evaluate: fix check for unknown in cmd_op_to_name

Fixes e1dfd5cc4c46 ("src: add support to command "destroy"")
---
 src/evaluate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/evaluate.c +1 -1
index 68cfd7765381..57da4044e8c0 100644
@@ -6048,7 +6048,7 @@ static const char * const cmd_op_name[] = {
 
 static const char *cmd_op_to_name(enum cmd_ops op)
 {
-	if (op > CMD_DESCRIBE)
+	if (op > CMD_DESTROY)
 		return "unknown";
 
 	return cmd_op_name[op];
Signature · 1 line
2.43.0