From: Razvan Cojocaru <[email protected]> The file holding the client's challenge response was never deleted, although the manual says it is removed after the script returns. The --auth-user-pass-verify via-file credentials file was kept when the deferred auth control files could not be created. Unlink both on every exit path.
Change-Id: Ifbd6badab31a48653fa0bca7f086db058f83f891 Signed-off-by: Razvan Cojocaru <[email protected]> Acked-by: Arne Schwabe <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2191 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2191 This mail reflects revision 3 of this Change. Acked-by according to Gerrit (reflected above): Arne Schwabe <[email protected]> diff --git a/src/openvpn/ssl_verify.c b/src/openvpn/ssl_verify.c index 8641d15..75cda97 100644 --- a/src/openvpn/ssl_verify.c +++ b/src/openvpn/ssl_verify.c @@ -1372,7 +1372,7 @@ "could not create deferred auth control file", __func__); retval = OPENVPN_PLUGIN_FUNC_ERROR; - goto error; + goto done; } /* call command */ @@ -1415,7 +1415,6 @@ platform_unlink(tmp_file); } -error: if (!session->opt->auth_user_pass_verify_script_via_file) { setenv_del(session->opt->es, "password"); @@ -1487,6 +1486,10 @@ tls_deauthenticate(multi); } done: + if (tmp_file) + { + platform_unlink(tmp_file); + } argv_free(&argv); gc_free(&gc); } _______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
