summaryrefslogtreecommitdiffstats
path: root/src/expr/ct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/ct.c')
-rw-r--r--src/expr/ct.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/expr/ct.c b/src/expr/ct.c
index 79c4f05..78575f2 100644
--- a/src/expr/ct.c
+++ b/src/expr/ct.c
@@ -205,8 +205,7 @@ static int nft_rule_expr_ct_json_parse(struct nft_rule_expr *e, json_t *root)
}
if (nft_jansson_node_exist(root, "dir")) {
- if (nft_jansson_value_parse_val(root, "dir", NFT_TYPE_U8,
- &dir) != 0)
+ if (nft_jansson_parse_val(root, "dir", NFT_TYPE_U8, &dir) < 0)
return -1;
if (dir != IP_CT_DIR_ORIGINAL && dir != IP_CT_DIR_REPLY)