]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
tests: Fix objref test case
authorPhil Sutter <phil@nwl.cc>
Fri, 15 Dec 2023 15:10:49 +0000 (16:10 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 6 Mar 2024 14:40:36 +0000 (15:40 +0100)
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

index 08e27ce49d72ae3673d2326f0bc2f213d04271d5..9e698df38e255d6c84c4906d013eee292eedf68a 100644 (file)
@@ -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");