Add http status enum & return ESP_FAIL as error code

This commit is contained in:
Tuan PM
2018-05-22 10:55:18 +07:00
parent ff528d13c7
commit f2aea4f5b6
3 changed files with 26 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ static int md5_printf(char *md, const char *fmt, ...)
va_start(ap, fmt);
len = vasprintf((char **)&buf, fmt, ap);
if (buf == NULL) {
return -1;
return ESP_FAIL;
}
MD5Init(&md5_ctx);