From bf63832207f0e13e5bda564d2be993f10b0fb458 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 15 Oct 2021 17:07:16 +0200 Subject: conf, pasta: Create a new namespace also if probing netns options failed Signed-off-by: Stefano Brivio --- conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.c b/conf.c index 483daeb..b92a7d9 100644 --- a/conf.c +++ b/conf.c @@ -1155,7 +1155,7 @@ void conf(struct ctx *c, int argc, char **argv) usage(argv[0]); } - if (c->mode == MODE_PASTA && !c->pasta_netns_fd) + if (c->mode == MODE_PASTA && c->pasta_netns_fd <= 0) pasta_start_ns(c); if (nl_sock_init(c)) { -- cgit v1.2.3