Skip to content

Commit 9625906

Browse files
authored
Update SSL Client (Ameba-AIoT#273)
- reset errno to 0 when starting a new SSL client connection
1 parent e3d996d commit 9625906

File tree

1 file changed

+2
-0
lines changed
  • Arduino_package/hardware/cores/ambpro2

1 file changed

+2
-0
lines changed

Arduino_package/hardware/cores/ambpro2/ard_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ int start_ssl_client(sslclient_context *ssl_client, uint32_t ipAddress, uint32_t
145145
mbedtls_x509_crt *_cli_crt = NULL;
146146
mbedtls_pk_context *_clikey_rsa = NULL;
147147

148+
errno = 0;
149+
148150
do {
149151
ssl_client->socket = -1;
150152
ssl_client->socket = lwip_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);

0 commit comments

Comments
 (0)