diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-02-01 03:14:16 -0500 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-02-04 17:14:22 +0100 |
commit | 25bdab9c6140a04dfb33e5b4118f45e8d8489d86 (patch) | |
tree | 143d61d9f08323af15e82f1e7069f784b55edb9f | |
parent | 29aeaab1d9bf2441f4a3a9f4a8554fa9af2bd5c2 (diff) | |
download | samba-25bdab9c6140a04dfb33e5b4118f45e8d8489d86.tar.gz samba-25bdab9c6140a04dfb33e5b4118f45e8d8489d86.tar.bz2 samba-25bdab9c6140a04dfb33e5b4118f45e8d8489d86.zip |
s3:dbwrap_ctdb: setup result->name in db_open_ctdb()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r-- | source3/lib/dbwrap/dbwrap_ctdb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index c96dda29fc..dd0f4eac32 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; |