Missing check for nsjconf->iface

This commit is contained in:
Jagger 2016-02-29 23:10:14 +01:00
parent 6c5c80256d
commit 7da81ff290

4
net.c
View File

@ -49,6 +49,10 @@
#include <netlink/route/link/macvlan.h>
bool netCloneMacVtapAndNS(struct nsjconf_t *nsjconf, int pid)
{
if (nsjconf->iface == NULL) {
return true;
}
struct nl_sock *sk;
struct nl_cache *link_cache;
int err, master_index;