diff options
author | anryko <a.shvenke@gmail.com> | 2018-01-04 18:36:54 +0100 |
---|---|---|
committer | anryko <a.shvenke@gmail.com> | 2018-01-04 18:36:54 +0100 |
commit | e7e3572182bf2a0d51ae449abeee0fabbb18a0b4 (patch) | |
tree | f80f68b3bb10ed8a6b9f18c49b975b99b0d1d289 | |
parent | aa44baaf619738676f9515ab85b518187cca3041 (diff) |
Close file descriptor on error handling.
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 1 |
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; } |