Reported-By: Trail of Bits
Signed-off-by: Arne Schwabe <[email protected]>
---
src/openvpn/misc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/openvpn/misc.c b/src/openvpn/misc.c
index d78106cdc..551606e0e 100644
--- a/src/openvpn/misc.c
+++ b/src/openvpn/misc.c
@@ -258,6 +258,7 @@ get_user_pass_cr(struct user_pass *up,
msg(D_LOW, "No password found in %s authfile '%s'. Querying
the management interface", prefix, auth_file);
if (!auth_user_pass_mgmt(up, prefix, flags, auth_challenge))
{
+ fclose(fp);
return false;
}
}
--
2.37.1 (Apple Git-137.1)
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel