From 25bdab9c6140a04dfb33e5b4118f45e8d8489d86 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 1 Feb 2013 03:14:16 -0500 Subject: [PATCH] s3:dbwrap_ctdb: setup result->name in db_open_ctdb() Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source3/lib/dbwrap/dbwrap_ctdb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index c96dda29fc0..dd0f4eac324 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -1520,6 +1520,13 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx, return NULL; } + result->name = talloc_strdup(result, name); + if (result->name == NULL) { + DEBUG(0, ("talloc failed\n")); + TALLOC_FREE(result); + return NULL; + } + db_ctdb->transaction = NULL; db_ctdb->db = result; -- 2.11.4.GIT