From 68cf698321289a85a1dd67f3b0e1944e166e30a6 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 14 Nov 2023 15:52:44 -0800 Subject: [PATCH] when getting failure status packets return failure error code --- src/wolfsftp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wolfsftp.c b/src/wolfsftp.c index a2619596e..0d3cf44c1 100644 --- a/src/wolfsftp.c +++ b/src/wolfsftp.c @@ -7475,6 +7475,9 @@ int wolfSSH_SFTP_SendReadPacket(WOLFSSH* ssh, byte* handle, word32 handleSz, WLOG(WS_LOG_SFTP, "OK or EOF found"); ret = 0; /* nothing was read */ } + else { + ret = WS_FATAL_ERROR; + } } state->state = STATE_SEND_READ_CLEANUP; NO_BREAK;