From 196b0da2cb6b4973c4d92afecb0b481c560d36a5 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 12 Jul 2021 21:34:35 +0200 Subject: [PATCH] Fix a possible crash when opening an ephemeral instance. --- src/meshlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.2