diff options
Diffstat (limited to 'lib/ns.c')
| -rw-r--r-- | lib/ns.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -565,9 +565,9 @@ void ns_terminate(void) int ns_socket(int domain, int type, int protocol, ns_id_t ns_id) { struct ns *ns = ns_lookup(ns_id); - int ret = -1; + int ret; - if (!ns_is_enabled(ns)) { + if (!ns || !ns_is_enabled(ns)) { errno = ENOSYS; return -1; } |
