]> git.meshlink.io Git - meshlink/commitdiff
Put a value also in mesh->name in finalize join
authorSaverio Proto <zioproto@gmail.com>
Tue, 17 Jun 2014 17:07:42 +0000 (19:07 +0200)
committerSaverio Proto <zioproto@gmail.com>
Tue, 17 Jun 2014 17:07:42 +0000 (19:07 +0200)
src/meshlink.c

index 44ea0b7078b8ecfc567e275fcb332262ff3f5a5b..e6ea203fbe996748e7e309ccf5fe69f4767bc8e6 100644 (file)
@@ -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);