From 1e83b05ef7ffb268efadc42c3dfed606854cd71f Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Tue, 17 Jun 2014 19:07:42 +0200 Subject: [PATCH] Put a value also in mesh->name in finalize join --- src/meshlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meshlink.c b/src/meshlink.c index 44ea0b70..e6ea203f 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -508,6 +508,7 @@ static bool finalize_join(meshlink_handle_t *mesh) { free(mesh->self->name); free(mesh->self->connection->name); mesh->self->name = xstrdup(name); + mesh->name = xstrdup(name); mesh->self->connection->name = xstrdup(name); fprintf(stderr, "Configuration stored in: %s\n", mesh->confbase); -- 2.39.5