From: anryko Date: Thu, 4 Jan 2018 17:36:54 +0000 (+0100) Subject: Close file descriptor on error handling. X-Git-Tag: gnunet-0.11.0rc0~2^2~19^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7e3572182bf2a0d51ae449abeee0fabbb18a0b4;p=oweals%2Fgnunet.git Close file descriptor on error handling. --- diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 4ed4e079e..26f77d2fc 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c @@ -649,6 +649,7 @@ main (int argc, char **argv) { fprintf (stderr, "Fatal: prefix_len out of range\n"); + close (fd_tun); return 1; }