The node name is already constructed when the nodes file is loaded, so
just copy the node name.
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
goto failed;
}
- ctdb->name = talloc_asprintf(ctdb, "%s:%u",
- ctdb_addr_to_str(ctdb->address),
- ctdb_addr_to_port(ctdb->address));
+ ctdb->name = talloc_strdup(ctdb, ctdb->nodes[i]->name);
if (ctdb->name == NULL) {
ctdb_set_error(ctdb, "Out of memory at %s:%d",
__FILE__, __LINE__);