X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Ftunalloc.c;h=053b4a5cfe71dba75ed4cd12b9c7793fd0365b1a;hb=305b76debf72120672a8ba81d3356b6dccb1da9a;hp=1f083e517817d6fc754cad5d00a37de70674fb87;hpb=91ae5bece01cfe69741f9e284d0ccf78fce87eb0;p=sliver-openvswitch.git diff --git a/lib/tunalloc.c b/lib/tunalloc.c index 1f083e517..053b4a5cf 100644 --- a/lib/tunalloc.c +++ b/lib/tunalloc.c @@ -6,6 +6,7 @@ * new tuntap interface. Interface name can be acquired via TUNGETIFF ioctl. */ +#include #include #include #include @@ -97,5 +98,8 @@ int tun_alloc(int iftype, char *if_name) } remotefd = receive_vif_fd(control_fd, if_name); + + close(control_fd); + return remotefd; }