diff options
-rw-r--r-- | socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |