Close file descriptor on error handling.
authoranryko <a.shvenke@gmail.com>
Thu, 4 Jan 2018 17:36:54 +0000 (18:36 +0100)
committeranryko <a.shvenke@gmail.com>
Thu, 4 Jan 2018 17:36:54 +0000 (18:36 +0100)
src/vpn/gnunet-helper-vpn.c

index 4ed4e079eea7a3d0bbef90491918ba51eaa52f3e..26f77d2fcf48b8921dccaccfbd910c0844a3615e 100644 (file)
@@ -649,6 +649,7 @@ main (int argc, char **argv)
     {
       fprintf (stderr,
                "Fatal: prefix_len out of range\n");
+      close (fd_tun);
       return 1;
     }