1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

gnutls: GNUTLS_E_PREMATURE_TERMINATION on www.raspberrypi.org

This commit is contained in:
Witold Filipczyk 2017-12-23 14:51:43 +01:00
parent 639748a20c
commit 8a8af596e0

View File

@ -568,6 +568,10 @@ ssl_read(struct socket *socket, unsigned char *data, int len)
#endif
#ifdef CONFIG_GNUTLS
if (err == GNUTLS_E_PREMATURE_TERMINATION) {
return SOCKET_CANT_READ;
}
if (err == GNUTLS_E_REHANDSHAKE) {
err = ssl_do_connect(socket);
if (err == 0) {