summaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authoranryko <a.shvenke@gmail.com>2018-01-04 18:36:54 +0100
committeranryko <a.shvenke@gmail.com>2018-01-04 18:36:54 +0100
commite7e3572182bf2a0d51ae449abeee0fabbb18a0b4 (patch)
treef80f68b3bb10ed8a6b9f18c49b975b99b0d1d289 /src/vpn
parentaa44baaf619738676f9515ab85b518187cca3041 (diff)
Close file descriptor on error handling.
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-helper-vpn.c1
1 files changed, 1 insertions, 0 deletions
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;
}