diff options
Diffstat (limited to 'src/expr/last.c')
-rw-r--r-- | src/expr/last.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/last.c b/src/expr/last.c index 641b713..273aaa1 100644 --- a/src/expr/last.c +++ b/src/expr/last.c @@ -129,7 +129,7 @@ static int nftnl_expr_last_snprintf(char *buf, size_t len, struct expr_ops expr_ops_last = { .name = "last", .alloc_len = sizeof(struct nftnl_expr_last), - .max_attr = NFTA_LAST_MAX, + .nftnl_max_attr = __NFTNL_EXPR_LAST_MAX - 1, .set = nftnl_expr_last_set, .get = nftnl_expr_last_get, .parse = nftnl_expr_last_parse, |