fix tests

This commit is contained in:
Balu Gajjala 2022-03-11 17:42:15 -08:00
parent affac5aedc
commit 2771541a41
1 changed files with 4 additions and 0 deletions

4
scp.c
View File

@ -1128,6 +1128,10 @@ do_sftp_connect(char *host, char *user, int port, char *sftp_direct,
return NULL;
} else {
if (args.list) {
freeargs(&args);
}
args.list = NULL;
addargs(&args, "sftp-server");
if (do_cmd(sftp_direct, host, NULL, -1, 0, "sftp",