Skip to content

Commit 39155e7

Browse files
authored
ssl_client.cpp: Fix parameter name in _handle_error. (#5217)
1 parent f385ee4 commit 39155e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/WiFiClientSecure/src/ssl_client.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525

2626
const char *pers = "esp32-tls";
2727

28-
static int _handle_error(int err, const char * file, int line)
28+
static int _handle_error(int err, const char * function, int line)
2929
{
3030
if(err == -30848){
3131
return err;
3232
}
3333
#ifdef MBEDTLS_ERROR_C
3434
char error_buf[100];
3535
mbedtls_strerror(err, error_buf, 100);
36-
log_e("[%s():%d]: (%d) %s", file, line, err, error_buf);
36+
log_e("[%s():%d]: (%d) %s", function, line, err, error_buf);
3737
#else
38-
log_e("[%s():%d]: code %d", file, line, err);
38+
log_e("[%s():%d]: code %d", function, line, err);
3939
#endif
4040
return err;
4141
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy