mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
tests: use torture_create_temp_file() in torture_knownhosts_parsing
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
78b1f0ead3
commit
77be4ce905
@@ -1058,6 +1058,7 @@ char *torture_create_temp_file(const char *template)
|
||||
goto free_prefix;
|
||||
}
|
||||
|
||||
/* Remark: this function creates the file */
|
||||
rc = GetTempFileNameA(tmp_dir_path, TEXT(prefix), 0, tmp_file_name);
|
||||
if (rc == 0) {
|
||||
goto free_prefix;
|
||||
|
||||
Reference in New Issue
Block a user