From: Mike Frysinger Date: Wed, 16 Nov 2016 16:42:44 +0000 (-0500) Subject: vunshare: close socket after bringing up loopback X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ce7f5e52754ca16cf3140fe3100c92d6904e5757;p=home.git vunshare: close socket after bringing up loopback --- diff --git a/vunshare.c b/vunshare.c index e76a985..274eebc 100644 --- a/vunshare.c +++ b/vunshare.c @@ -62,6 +62,8 @@ static void unshare_net(void) ifr.ifr_flags |= IFF_UP | IFF_RUNNING; if (ioctl(sock, SIOCSIFFLAGS, &ifr) < 0) err(1, "ioctl(SIOCSIFFLAGS) failed"); + + close(sock); } static char **title_argv;