From 120f86755abd4919ae7a27de6071878d72fe279b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 19 Apr 2016 21:40:40 +0200 Subject: [PATCH] ctdbd_conn: "sockname" is not needed anymore Previously it was used in ctdb_traverse(), but with ff72a8a this is no longer the case Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/lib/ctdbd_conn.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 82abdf95937..18849757470 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -47,7 +47,6 @@ struct ctdbd_srvid_cb { }; struct ctdbd_connection { - const char *sockname; /* Needed in ctdbd_traverse */ struct messaging_context *msg_ctx; uint32_t reqid; uint32_t our_vnn; @@ -433,20 +432,13 @@ int ctdbd_init_connection(TALLOC_CTX *mem_ctx, return ENOMEM; } - conn->sockname = talloc_strdup(conn, sockname); - if (conn->sockname == NULL) { - DBG_ERR("talloc failed\n"); - ret = ENOMEM; - goto fail; - } - conn->timeout = timeout; if (conn->timeout == 0) { conn->timeout = -1; } - ret = ctdbd_connect(conn->sockname, &conn->fd); + ret = ctdbd_connect(sockname, &conn->fd); if (ret != 0) { DEBUG(1, ("ctdbd_connect failed: %s\n", strerror(ret))); goto fail;