X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_setup.c;h=667d15a381723869df9abdf650adbeb3cdfdce23;hb=f325bd9bf8c3276c7ece274389d6edb0c4ebd911;hp=367ccd293857f98162b50ba4a8a4afda5f3be217;hpb=46e373d99b4559245885c94930a6979d03a6f12b;p=meshlink diff --git a/src/net_setup.c b/src/net_setup.c index 367ccd29..667d15a3 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -270,7 +270,13 @@ bool node_write_config(meshlink_handle_t *mesh, node_t *n) { } config_t config = {buf, packmsg_output_size(&out, buf)}; - return config_write(mesh, "current", n->name, &config, mesh->config_key); + + if(!config_write(mesh, "current", n->name, &config, mesh->config_key)) { + call_error_cb(mesh, MESHLINK_ESTORAGE); + return false; + } + + return true; } static bool load_node(meshlink_handle_t *mesh, const char *name, void *priv) {