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

map-controller: fix commit before exit

parent d11d5d20
Branches
No related tags found
No related merge requests found
Pipeline #30556 failed
...@@ -441,7 +441,7 @@ int handle_ap_autoconfig_search(void *cntlr, struct cmdu_buff *rx_cmdu) ...@@ -441,7 +441,7 @@ int handle_ap_autoconfig_search(void *cntlr, struct cmdu_buff *rx_cmdu)
UCI_TYPE_STRING); UCI_TYPE_STRING);
ret = ubus_lookup_id(c->ubus_ctx, "uci", &uci_obj); ret = ubus_lookup_id(c->ubus_ctx, "uci", &uci_obj);
if (ret) { if (!ret) {
struct blob_buf bb = {0}; struct blob_buf bb = {0};
blob_buf_init(&bb, 0); blob_buf_init(&bb, 0);
...@@ -451,12 +451,9 @@ int handle_ap_autoconfig_search(void *cntlr, struct cmdu_buff *rx_cmdu) ...@@ -451,12 +451,9 @@ int handle_ap_autoconfig_search(void *cntlr, struct cmdu_buff *rx_cmdu)
"commit", bb.head, "commit", bb.head,
NULL, NULL, NULL, NULL,
2 * 1000); 2 * 1000);
if (ret) { if (ret)
err("Failed to get 'commit' (ret = %d), exit anyway\n", err("Failed to get 'commit' (ret = %d), exit anyway\n",
ret); ret);
blob_buf_free(&bb);
exit(0);
}
blob_buf_free(&bb); blob_buf_free(&bb);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment