mirror of
https://github.com/chenasraf/redot-engine.git
synced 2026-05-18 01:39:11 +00:00
mbedtls: client: stop spinning on handshake fail
Backport cf3a4ee49357f4e6f3aaeb98137d85c307b17008 from 2.4-stable to 2.4.2
This commit is contained in:
8
thirdparty/lws/client/ssl-client.c
vendored
8
thirdparty/lws/client/ssl-client.c
vendored
@@ -284,9 +284,13 @@ some_wait:
|
||||
char *p = (char *)&pt->serv_buf[0];
|
||||
char *sb = p;
|
||||
|
||||
lwsl_err("ssl hs1 error, X509_V_ERR = %d: %s\n",
|
||||
n, ERR_error_string(n, sb));
|
||||
lwsl_err("ssl hs1 error, X509_V_ERR = %d: errno %d: %s\n",
|
||||
n, errno, ERR_error_string(n, sb));
|
||||
lws_ssl_elaborate_error();
|
||||
#if defined(LWS_WITH_MBEDTLS)
|
||||
if (n == SSL_ERROR_SYSCALL)
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
n = -1;
|
||||
|
||||
Reference in New Issue
Block a user