From: Saverio Proto Date: Tue, 17 Jun 2014 17:07:42 +0000 (+0200) Subject: Put a value also in mesh->name in finalize join X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1e83b05ef7ffb268efadc42c3dfed606854cd71f;p=meshlink Put a value also in mesh->name in finalize join --- 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);