X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fnet_setup.c;h=559f0496579ba38540c01635416160ca60c2d2a8;hp=aeceb1f892d00fb58789fc25415674aea34b845c;hb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;hpb=6c897377f68fc23ca9a8b23a6ca204517998b2e9 diff --git a/src/net_setup.c b/src/net_setup.c index aeceb1f8..559f0496 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -116,7 +116,6 @@ bool node_read_public_key(meshlink_handle_t *mesh, node_t *n) { n->recent[i + known_count] = packmsg_get_sockaddr(&in); } - config_free(&config); return true; } @@ -233,6 +232,7 @@ bool node_write_config(meshlink_handle_t *mesh, node_t *n) { } if(!packmsg_output_ok(&out)) { + meshlink_errno = MESHLINK_EINTERNAL; return false; } @@ -402,7 +402,9 @@ bool setup_myself(meshlink_handle_t *mesh) { graph(mesh); - config_scan_all(mesh, "current", "hosts", load_node, NULL); + if(!config_scan_all(mesh, "current", "hosts", load_node, NULL)) { + logger(mesh, MESHLINK_WARNING, "Could not scan all host config files"); + } /* Open sockets */