X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink.c;fp=src%2Fmeshlink.c;h=0843cc0c4826d0d3a800904f28e4c1c51704c528;hp=07326d56f0642e644628346cbf5a06779e5c830c;hb=d1b4e07e76555ecf47faf36f38a62878969be6d7;hpb=1de30bc05683aade10634f2d357dcc2379bfcc42 diff --git a/src/meshlink.c b/src/meshlink.c index 07326d56..0843cc0c 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -829,7 +829,7 @@ static bool finalize_join(join_state_t *state, const void *buf, uint16_t len) { } /* Ensure the configuration directory metadata is on disk */ - if(!config_sync(mesh, "current") || !sync_path(mesh->confbase)) { + if(!config_sync(mesh, "current") || (mesh->confbase && !sync_path(mesh->confbase))) { return false; }