one more fix of asterisk password string save
This commit is contained in:
parent
c9f1aa3897
commit
33f5ee9195
|
|
@ -308,11 +308,13 @@ esp_err_t SetConfVar(char *name, char *val, rest_var_types *tp)
|
|||
strcpy(V->ref, val);
|
||||
break;
|
||||
case VAR_PASS:
|
||||
constr = strlen(val);
|
||||
if (constr < V->minlen || constr > V->maxlen)
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
if (strcmp(val, "******"))
|
||||
if (val[0] != '*')
|
||||
{
|
||||
constr = strlen(val);
|
||||
if (constr < V->minlen || constr > V->maxlen)
|
||||
return ESP_ERR_INVALID_ARG;
|
||||
strcpy(V->ref, val);
|
||||
}
|
||||
break;
|
||||
|
||||
case VAR_IPADDR:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user