1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

esp32: fix basic auth

This commit is contained in:
Andy Green 2018-03-01 10:27:12 +08:00
parent 7bc6383759
commit 658b86ed9f

View file

@ -643,7 +643,7 @@ lws_find_string_in_file(const char *filename, const char *string, int stringlen)
const char *p = strchr(string, ':'), *q;
if (!p)
return 1;
return 0;
q = string;
n = 0;
@ -658,7 +658,7 @@ lws_find_string_in_file(const char *filename, const char *string, int stringlen)
nvs_close(nvh);
if (n != ESP_OK)
return 2;
return 0;
return !strcmp(p + 1, result);
}