From 8740c8cf8e18bfac1590ee84717f93bf7f84cc86 Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Thu, 22 Feb 2018 17:25:25 -0800 Subject: [PATCH] Close credentials file when we're done reading it. (#704) Fixes #701. --- src/iperf_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/iperf_auth.c b/src/iperf_auth.c index d0484e4..f8d2b0a 100644 --- a/src/iperf_auth.c +++ b/src/iperf_auth.c @@ -1,5 +1,5 @@ /* - * iperf, Copyright (c) 2014-2017, The Regents of the University of + * iperf, Copyright (c) 2014-2018, The Regents of the University of * California, through Lawrence Berkeley National Laboratory (subject * to receipt of any required approvals from the U.S. Dept. of * Energy). All rights reserved. @@ -98,6 +98,7 @@ int check_authentication(const char *username, const char *password, const time_ return 0; } } + fclose(ptr_file); return 3; }