Skip to content

Commit 9583cfc

Browse files
committed
Release rollup
1. Fix a dead store by using the value. 2. Revert removing the clean from configure.
1 parent a32b5ad commit 9583cfc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ AX_CREATE_GENERIC_CONFIG
175175

176176
AC_OUTPUT
177177

178+
# force make clean
179+
AS_ECHO(["---"])
180+
AS_ECHO(["Running make clean..."])
181+
make clean >/dev/null 2>&1
182+
178183
# output config summary
179184
AS_ECHO(["---"])
180185
AS_ECHO(["Configuration summary for $PACKAGE_NAME version $VERSION"])

src/wolfsftp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ int wolfSSH_SFTP_read(WOLFSSH* ssh)
12191219

12201220
if ((int)state->idx < state->sz) {
12211221
ret = wolfSSH_worker(ssh, NULL);
1222-
if (ssh->error == WS_WANT_READ) {
1222+
if (ret != WS_SUCCESS && ssh->error == WS_WANT_READ) {
12231223
/* was something there to read, try again */
12241224
state->toSend = 2;
12251225
return WS_FATAL_ERROR;

0 commit comments

Comments
 (0)