mirror of https://github.com/wolfSSL/wolfssh.git
SendPacketType() set the state to SFTP_SEND_PACKET even when wolfSSH_SFTP_negotiate() returned a retry or an error. No request buffer was built in that case, so an empty buffer was sent and the caller could wait for a response to a request that was never sent. Move to SFTP_SEND_PACKET only when the request has been built, and return the negotiation result otherwise. Keep the state for retryable errors. Add the wolfSSH_TestSftpSendPacketType() test hook and an API test that fails without this change. F-13904 |
||
|---|---|---|
| .. | ||
| api.c | ||
| api.h | ||
| auth.c | ||
| auth.h | ||
| include.am | ||
| kex.c | ||
| kex.h | ||
| regress.c | ||
| sftp.c | ||
| sftp.h | ||
| testsuite.c | ||
| testsuite.h | ||
| unit.c | ||
| unit.h | ||