summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sharesec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index c4704dfc12..2b9cc8c691 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -194,8 +194,7 @@ BOOL delete_share_security(const struct share_params *params)
slprintf(key, sizeof(key)-1, "SECDESC/%s",
lp_servicename(params->service));
- kbuf.dptr = key;
- kbuf.dsize = strlen(key)+1;
+ kbuf = string_term_tdb_data(key);
if (tdb_trans_delete(share_tdb, kbuf) != 0) {
DEBUG(0,("delete_share_security: Failed to delete entry for share %s\n",