Skip to content

Commit 82e71f9

Browse files
authored
Update ssl_client.cpp (espressif#4574)
Replace (depricated) bzero with memset.
1 parent 2e12392 commit 82e71f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFiClientSecure/src/ssl_client.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
227227
log_v("Verifying peer X.509 certificate...");
228228

229229
if ((flags = mbedtls_ssl_get_verify_result(&ssl_client->ssl_ctx)) != 0) {
230-
bzero(buf, sizeof(buf));
230+
memset(buf, 0, sizeof(buf));
231231
mbedtls_x509_crt_verify_info(buf, sizeof(buf), " ! ", flags);
232232
log_e("Failed to verify peer certificate! verification info: %s", buf);
233233
stop_ssl_socket(ssl_client, rootCABuff, cli_cert, cli_key); //It's not safe continue.

0 commit comments

Comments
 (0)