Skip to content
Snippets Groups Projects
Commit 7a5ab615 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Handle unlikely case where sftpc_finish() is called while waiting

and before the first response.
parent e5eb38fa
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -164,6 +164,8 @@ get_result(sftpc_state_t state)
return false;
if (WaitForEvent(state->recv_event, INFINITE) != WAIT_OBJECT_0)
return false;
if (state->rxp == NULL)
return false;
if (state->rxp->type != SSH_FXP_VERSION) {
uint32_t id = sftp_get32(state->rxp);
if (id != state->id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment