systemcmds/param: set-default should mark parameter active to avoid race conditions

This commit is contained in:
Daniel Agar
2021-10-19 14:20:19 -04:00
parent e32a484906
commit 23c89429ac
+1 -1
View File
@@ -885,7 +885,7 @@ do_set(const char *name, const char *val, bool fail_on_not_found)
static int
do_set_custom_default(const char *name, const char *val, bool silent_fail)
{
param_t param = param_find_no_notification(name);
param_t param = param_find(name);
/* set nothing if parameter cannot be found */
if (param == PARAM_INVALID && !silent_fail) {