fix tests
This commit is contained in:
parent
affac5aedc
commit
2771541a41
4
scp.c
4
scp.c
|
@ -1128,6 +1128,10 @@ do_sftp_connect(char *host, char *user, int port, char *sftp_direct,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
if (args.list) {
|
||||||
|
freeargs(&args);
|
||||||
|
}
|
||||||
|
|
||||||
args.list = NULL;
|
args.list = NULL;
|
||||||
addargs(&args, "sftp-server");
|
addargs(&args, "sftp-server");
|
||||||
if (do_cmd(sftp_direct, host, NULL, -1, 0, "sftp",
|
if (do_cmd(sftp_direct, host, NULL, -1, 0, "sftp",
|
||||||
|
|
Loading…
Reference in New Issue