From e7e3572182bf2a0d51ae449abeee0fabbb18a0b4 Mon Sep 17 00:00:00 2001 From: anryko Date: Thu, 4 Jan 2018 18:36:54 +0100 Subject: [PATCH] Close file descriptor on error handling. --- src/vpn/gnunet-helper-vpn.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.25.1