summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-06-20 11:47:53 +0200
committerMichael Adam <obnox@samba.org>2012-06-21 14:08:38 +0200
commit7a2daf34f28ff25a993edb9c10b3327db70ce258 (patch)
tree3498891a9d9bfaeee03a94a16f57fa42add9c4e6 /source3/lib
parentc6aa36c6c4ca9326b9f49dfb71c3222e8bf2cd69 (diff)
downloadsamba-7a2daf34f28ff25a993edb9c10b3327db70ce258.tar.gz
samba-7a2daf34f28ff25a993edb9c10b3327db70ce258.tar.bz2
samba-7a2daf34f28ff25a993edb9c10b3327db70ce258.zip
s3: Use string_term_tdb_data where appropriate
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdbd_conn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c
index da58259e6b..9bd5178f25 100644
--- a/source3/lib/ctdbd_conn.c
+++ b/source3/lib/ctdbd_conn.c
@@ -1284,8 +1284,7 @@ NTSTATUS ctdbd_db_attach(struct ctdbd_connection *conn,
int32_t cstatus;
bool persistent = (tdb_flags & TDB_CLEAR_IF_FIRST) == 0;
- data.dptr = (uint8_t*)name;
- data.dsize = strlen(name)+1;
+ data = string_term_tdb_data(name);
status = ctdbd_control(conn, CTDB_CURRENT_NODE,
persistent