Skip to content

Commit a3c8760

Browse files
committed
Fix to error checking in espressif SSLSocket
1 parent 05e0734 commit a3c8760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/espressif/common-hal/ssl/SSLSocket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void common_hal_ssl_sslsocket_connect(ssl_sslsocket_obj_t *self,
6666

6767
if (err == ESP_ERR_MBEDTLS_SSL_SETUP_FAILED) {
6868
mp_raise_espidf_MemoryError();
69-
} else if (ESP_ERR_MBEDTLS_SSL_HANDSHAKE_FAILED) {
69+
} else if (err == ESP_ERR_MBEDTLS_SSL_HANDSHAKE_FAILED) {
7070
mp_raise_OSError_msg_varg(translate("Failed SSL handshake"));
7171
} else {
7272
mp_raise_OSError_msg_varg(translate("Unhandled ESP TLS error %d %d %x %d"), esp_tls_code, flags, err, result);

0 commit comments

Comments
 (0)