]> git.meshlink.io Git - meshlink/blobdiff - src/net_setup.c
Check the return value of node_write_config() while handling invitations.
[meshlink] / src / net_setup.c
index b4a16c7e17fd782341db34bd256c9754c1c7fd8b..667d15a381723869df9abdf650adbeb3cdfdce23 100644 (file)
@@ -272,7 +272,7 @@ bool node_write_config(meshlink_handle_t *mesh, node_t *n) {
        config_t config = {buf, packmsg_output_size(&out, buf)};
 
        if(!config_write(mesh, "current", n->name, &config, mesh->config_key)) {
-               call_error_cb(mesh);
+               call_error_cb(mesh, MESHLINK_ESTORAGE);
                return false;
        }