diff options
Diffstat (limited to 'src/libnftables.c')
-rw-r--r-- | src/libnftables.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libnftables.c b/src/libnftables.c index 5b3eb2dc..79dfdfc7 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -186,11 +186,6 @@ void nft_ctx_clear_include_paths(struct nft_ctx *ctx) ctx->include_paths = NULL; } -static void nft_ctx_netlink_init(struct nft_ctx *ctx) -{ - ctx->nf_sock = nft_mnl_socket_open(); -} - EXPORT_SYMBOL(nft_ctx_new); struct nft_ctx *nft_ctx_new(uint32_t flags) { @@ -218,7 +213,7 @@ struct nft_ctx *nft_ctx_new(uint32_t flags) ctx->output.error_fp = stderr; init_list_head(&ctx->vars_ctx.indesc_list); - nft_ctx_netlink_init(ctx); + ctx->nf_sock = nft_mnl_socket_open(); return ctx; } |