Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 82e71f9

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎libraries/WiFiClientSecure/src/ssl_client.cpp

Copy file name to clipboardExpand all lines: libraries/WiFiClientSecure/src/ssl_client.cpp
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.