From 356b71a1ac60d429d68baf9dea4ad9eb67b50ad9 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 28 Nov 2021 13:03:04 +0100 Subject: Revert "wolfSSL: workaround 5.0.0 SSL_peek() not truly blocking." This reverts commit 0d32056e7b14bd029aa375f59230a3ad3e2bae51. --- socket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index eb532655..bb3c1f16 100644 --- a/socket.c +++ b/socket.c @@ -521,8 +521,7 @@ int SockRead(int sock, char *buf, int len) /* SSL_peek says no data... Does he mean no data or did the connection blow up? If we got an error then bail! */ - int r = SSL_get_error(ssl, n); - if (r != 0 && r != SSL_ERROR_WANT_READ) { + if (0 != SSL_get_error(ssl, n)) { return -1; } /* We didn't get an error so read at least one -- cgit v1.2.3