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:
parent
ee6021a3b0
commit
53427a9b76
@ -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>
|
2011-04-24 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
* html-url.c: Include "exists.h".
|
* html-url.c: Include "exists.h".
|
||||||
|
@ -263,8 +263,8 @@ openssl_read (int fd, char *buf, int bufsize, void *arg)
|
|||||||
do
|
do
|
||||||
ret = SSL_read (conn, buf, bufsize);
|
ret = SSL_read (conn, buf, bufsize);
|
||||||
while (ret == -1
|
while (ret == -1
|
||||||
|| (SSL_get_error (conn, ret) == SSL_ERROR_SYSCALL
|
&& SSL_get_error (conn, ret) == SSL_ERROR_SYSCALL
|
||||||
&& errno == EINTR));
|
&& errno == EINTR);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user