1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

openssl: Prevent loops on read errors.

This commit is contained in:
Ray Satiro 2011-05-15 16:54:58 +02:00 committed by Giuseppe Scrivano
parent ee6021a3b0
commit 53427a9b76
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-05-15 Ray Satiro <raysatiro@yahoo.com>
* openssl.c (openssl_read): Prevent loops on read errors.
2011-04-24 Giuseppe Scrivano <gscrivano@gnu.org>
* html-url.c: Include "exists.h".

View 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;
}