one more fix of asterisk password string save

This commit is contained in:
Bogdan Pilyugin 2023-08-15 11:17:54 +02:00
parent c9f1aa3897
commit 33f5ee9195

View File

@ -308,11 +308,13 @@ esp_err_t SetConfVar(char *name, char *val, rest_var_types *tp)
strcpy(V->ref, val);
break;
case VAR_PASS:
if (val[0] != '*')
{
constr = strlen(val);
if (constr < V->minlen || constr > V->maxlen)
return ESP_ERR_INVALID_ARG;
if (strcmp(val, "******"))
strcpy(V->ref, val);
}
break;
case VAR_IPADDR: