diff options
Diffstat (limited to 'src/libnftables.c')
-rw-r--r-- | src/libnftables.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libnftables.c b/src/libnftables.c index de6dc7cd..aa6493aa 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -145,7 +145,8 @@ int nft_ctx_add_var(struct nft_ctx *ctx, const char *var) return 0; } -static void nft_ctx_clear_vars(struct nft_ctx *ctx) +EXPORT_SYMBOL(nft_ctx_clear_vars); +void nft_ctx_clear_vars(struct nft_ctx *ctx) { unsigned int i; @@ -153,6 +154,7 @@ static void nft_ctx_clear_vars(struct nft_ctx *ctx) xfree(ctx->vars[i].key); xfree(ctx->vars[i].value); } + ctx->num_vars = 0; xfree(ctx->vars); } |