mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-12-14 17:27:30 +08:00
Merge branch 'bugfix/tls_handshake_backport_v3.3' into 'release/v3.3'
bugfix/tls_handshake:(Backport v3.3) Fixed an error check during TLS handshake. See merge request sdk/ESP8266_RTOS_SDK!1290
This commit is contained in:
@@ -107,7 +107,7 @@ IoT_Error_t iot_tls_connect(Network *pNetwork, TLSConnectParams *params) {
|
|||||||
ret = SSL_CONNECTION_ERROR;
|
ret = SSL_CONNECTION_ERROR;
|
||||||
} else {
|
} else {
|
||||||
int tls_ret = esp_tls_conn_new_sync(pNetwork->tlsConnectParams.pDestinationURL, strlen(pNetwork->tlsConnectParams.pDestinationURL), pNetwork->tlsConnectParams.DestinationPort, &cfg, tls);
|
int tls_ret = esp_tls_conn_new_sync(pNetwork->tlsConnectParams.pDestinationURL, strlen(pNetwork->tlsConnectParams.pDestinationURL), pNetwork->tlsConnectParams.DestinationPort, &cfg, tls);
|
||||||
if (tls_ret) {
|
if (tls_ret == -1) {
|
||||||
ret = SSL_CONNECTION_ERROR;
|
ret = SSL_CONNECTION_ERROR;
|
||||||
esp_tls_conn_delete(tls);
|
esp_tls_conn_delete(tls);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user