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);
|
strcpy(V->ref, val);
|
||||||
break;
|
break;
|
||||||
case VAR_PASS:
|
case VAR_PASS:
|
||||||
|
if (val[0] != '*')
|
||||||
|
{
|
||||||
constr = strlen(val);
|
constr = strlen(val);
|
||||||
if (constr < V->minlen || constr > V->maxlen)
|
if (constr < V->minlen || constr > V->maxlen)
|
||||||
return ESP_ERR_INVALID_ARG;
|
return ESP_ERR_INVALID_ARG;
|
||||||
if (strcmp(val, "******"))
|
|
||||||
strcpy(V->ref, val);
|
strcpy(V->ref, val);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VAR_IPADDR:
|
case VAR_IPADDR:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user