mirror of https://github.com/wolfSSL/wolfssh.git
SFTP Test Maintenance
1. In wolfSSH_SftpTest(), move the -p parameter inside the guard with the port number it belongs to. 2. In wolfSSH_SftpTest(), free the conditional variable and mutex.pull/646/head
parent
e23970d535
commit
16708d2bb0
|
|
@ -216,10 +216,10 @@ int wolfSSH_SftpTest(int flag)
|
|||
args[argsCount++] = "jill";
|
||||
args[argsCount++] = "-P";
|
||||
args[argsCount++] = "upthehill";
|
||||
args[argsCount++] = "-p";
|
||||
|
||||
#ifndef USE_WINDOWS_API
|
||||
/* use port that server has found */
|
||||
args[argsCount++] = "-p";
|
||||
snprintf(portNumber, sizeof(portNumber), "%d", ready.port);
|
||||
args[argsCount++] = portNumber;
|
||||
#endif
|
||||
|
|
@ -240,6 +240,7 @@ int wolfSSH_SftpTest(int flag)
|
|||
|
||||
ThreadJoin(serThread);
|
||||
wolfSSH_Cleanup();
|
||||
FreeTcpReady(&ready);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue