diff --git a/src/openvpn/ssl_verify.c b/src/openvpn/ssl_verify.c index 36c1a28e..08672eb8 100644 --- a/src/openvpn/ssl_verify.c +++ b/src/openvpn/ssl_verify.c @@ -998,7 +998,7 @@ key_state_gen_auth_control_files(struct auth_deferred_status *ads, const char *apf = platform_create_temp_file(opt->tmp_dir, "apf", &gc); const char *afr = platform_create_temp_file(opt->tmp_dir, "afr", &gc); - if (acf && apf) + if (acf && apf && afr) { ads->auth_control_file = string_alloc(acf, NULL); ads->auth_pending_file = string_alloc(apf, NULL); @@ -1010,7 +1010,7 @@ key_state_gen_auth_control_files(struct auth_deferred_status *ads, } gc_free(&gc); - return (acf && apf); + return (acf && apf && afr); } /**