Skip to content
Snippets Groups Projects
Commit 445ea3cf authored by Jakob Olsson's avatar Jakob Olsson
Browse files

config: check return vlaue after set

parent 167bad94
No related branches found
No related tags found
No related merge requests found
Pipeline #35533 failed
......@@ -385,8 +385,16 @@ int cntlr_config_add_agent_radio(struct controller_config *c, char *al_mac,
goto out_pkg;
ret = set_value(ctx, pkg, section, "agent_id", al_mac, UCI_TYPE_STRING);
if (ret)
goto out_pkg;
ret = set_value(ctx, pkg, section, "macaddr", radio_mac, UCI_TYPE_STRING);
if (ret)
goto out_pkg;
ret = set_value(ctx, pkg, section, "band", band, UCI_TYPE_STRING);
if (ret)
goto out_pkg;
uci_commit(ctx, &pkg, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment