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
John Safranek 2024-01-02 14:01:59 -08:00
parent e23970d535
commit 16708d2bb0
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}