diff options
author | Volker Lendecke <vl@samba.org> | 2012-06-20 11:47:53 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-06-21 14:08:38 +0200 |
commit | 7a2daf34f28ff25a993edb9c10b3327db70ce258 (patch) | |
tree | 3498891a9d9bfaeee03a94a16f57fa42add9c4e6 | |
parent | c6aa36c6c4ca9326b9f49dfb71c3222e8bf2cd69 (diff) | |
download | samba-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>
-rw-r--r-- | source3/lib/ctdbd_conn.c | 3 |
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 |