aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--socket.c3
1 files changed, 1 insertions, 2 deletions
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