X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet_setup.c;fp=src%2Fnet_setup.c;h=b4a16c7e17fd782341db34bd256c9754c1c7fd8b;hb=4216a7e7a1897c0e34ce82e7c2c4cc82070c7b10;hp=367ccd293857f98162b50ba4a8a4afda5f3be217;hpb=1e2076334fd067db863956c7bda77fcbcc9a52fc;p=meshlink diff --git a/src/net_setup.c b/src/net_setup.c index 367ccd29..b4a16c7e 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); + return false; + } + + return true; } static bool load_node(meshlink_handle_t *mesh, const char *name, void *priv) {