lib/netns: fix open_ns(): return fd from open()

Looks like a bug introduced by I9b9c8fd6eeaaa7d190b8e2a34ca82088904c7708.

Change-Id: I38caf5541ca90638ed10714adfbb08120e5397b9
Fixes: CID#208656
This commit is contained in:
Vadim Yanitskiy 2020-03-03 15:37:42 +07:00
parent ad6eaa2881
commit 20539f0271
1 changed files with 1 additions and 1 deletions

View File

@ -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)