diff mbox series

[libnftnl,1/6] tests: Fix objref test case

Message ID 20231215215350.17691-2-phil@nwl.cc
State Accepted
Headers show
Series Attribute policies for expressions | expand

Commit Message

Phil Sutter Dec. 15, 2023, 9:53 p.m. UTC
Probably a c'n'p bug, the test would allocate a lookup expression
instead of the objref one to be tested.

Fixes: b4edb4fc558ac ("expr: add stateful object reference expression")
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 tests/nft-expr_objref-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/nft-expr_objref-test.c b/tests/nft-expr_objref-test.c
index 08e27ce49d72a..9e698df38e255 100644
--- a/tests/nft-expr_objref-test.c
+++ b/tests/nft-expr_objref-test.c
@@ -52,7 +52,7 @@  int main(int argc, char *argv[])
 	b = nftnl_rule_alloc();
 	if (a == NULL || b == NULL)
 		print_err("OOM");
-	ex = nftnl_expr_alloc("lookup");
+	ex = nftnl_expr_alloc("objref");
 	if (ex == NULL)
 		print_err("OOM");