From: Guus Sliepen Date: Mon, 12 Jul 2021 19:34:35 +0000 (+0200) Subject: Fix a possible crash when opening an ephemeral instance. X-Git-Url: http://git.meshlink.io/?p=meshlink-tiny;a=commitdiff_plain;h=196b0da2cb6b4973c4d92afecb0b481c560d36a5 Fix a possible crash when opening an ephemeral instance. --- diff --git a/src/meshlink.c b/src/meshlink.c index b69c161..ec8024e 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -312,7 +312,9 @@ static bool finalize_join(join_state_t *state, const void *buf, uint16_t len) { sptps_send_record(&state->sptps, 1, ecdsa_get_public_key(mesh->private_key), 32); - logger(mesh, MESHLINK_DEBUG, "Configuration stored in: %s\n", mesh->confbase); + if(mesh->confbase) { + logger(mesh, MESHLINK_DEBUG, "Configuration stored in: %s\n", mesh->confbase); + } return true; }