]> sjero.net Git - wget/blobdiff - src/openssl.c
openssl: Prevent loops on read errors.
[wget] / src / openssl.c
index a1b35b21cdb6f6344fc8c0cac837900a7c284c08..02bd2f430c5787dea3ea99a4c6de3b5abd4fc26b 100644 (file)
@@ -263,8 +263,8 @@ openssl_read (int fd, char *buf, int bufsize, void *arg)
   do
     ret = SSL_read (conn, buf, bufsize);
   while (ret == -1
-             || (SSL_get_error (conn, ret) == SSL_ERROR_SYSCALL
-                 && errno == EINTR));
+         && SSL_get_error (conn, ret) == SSL_ERROR_SYSCALL
+         && errno == EINTR);
 
   return ret;
 }