mirror of
https://github.com/espressif/arduino-esp32
synced 2024-09-21 10:28:04 +00:00
Fixes Malloc (#9012)
Fixes `malloc()` call preventing it from using function pointer reference instead of actually calling the function itself.
This commit is contained in:
parent
0aefc94470
commit
71b1d767af
@ -135,7 +135,7 @@ bool WebServer::authenticate(const char * username, const char * password){
|
||||
authReq = authReq.substring(6);
|
||||
authReq.trim();
|
||||
char toencodeLen = strlen(username)+strlen(password)+1;
|
||||
char *toencode = (char *)malloc[toencodeLen + 1];
|
||||
char *toencode = (char *)malloc(toencodeLen + 1);
|
||||
if(toencode == NULL){
|
||||
authReq = "";
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user