aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netns.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/netns.c')
-rw-r--r--lib/netns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netns.c b/lib/netns.c
index bd2076b..58ae036 100644
--- a/lib/netns.c
+++ b/lib/netns.c
@@ -96,7 +96,7 @@ int open_ns(int nsfd, const char *pathname, int flags)
return -rc;
}
- return 0;
+ return fd;
}
int socket_ns(int nsfd, int domain, int type, int protocol)