Skip to content

Commit 14fdd8d

Browse files
Merge pull request #328 from dgarske/revert-pr327
Revert "Tls client: fix bad comparison for non-blocking shutdown call."
2 parents d4c6965 + 62495aa commit 14fdd8d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tls/client-tls-nonblocking.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ int main(int argc, char** argv)
246246
err = wolfSSL_get_error(ssl, 0);
247247
if (err == WOLFSSL_ERROR_WANT_READ)
248248
tcp_select(sockfd, SELECT_WAIT_SEC, 1);
249-
} while (err == WOLFSSL_ERROR_WANT_READ || err == WOLFSSL_ERROR_WANT_WRITE);
249+
} while (ret == WOLFSSL_ERROR_WANT_READ ||
250+
ret == WOLFSSL_ERROR_WANT_WRITE);
250251
printf("Shutdown complete\n");
251252

252253
ret = 0;

0 commit comments

Comments
 (0)