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 |
||
|---|---|---|
| .. | ||
| agent.h | ||
| certman.h | ||
| certs_test.h | ||
| error.h | ||
| include.am | ||
| internal.h | ||
| keygen.h | ||
| log.h | ||
| misc.h | ||
| ossh.h | ||
| port.h | ||
| settings.h | ||
| ssh.h | ||
| test.h | ||
| version.h | ||
| version.h.in | ||
| visibility.h | ||
| wolfscp.h | ||
| wolfsftp.h | ||