diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-03-29 07:30:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:59 -0500 |
commit | e8265c651590155262d167210ba8e3a287ae7a0e (patch) | |
tree | 5786399cc328b68488d9b71c5142e85dc5960f38 /source3 | |
parent | 71b8fdff85559213f5b880946cc918777c2389cc (diff) | |
download | samba-e8265c651590155262d167210ba8e3a287ae7a0e.tar.gz samba-e8265c651590155262d167210ba8e3a287ae7a0e.tar.bz2 samba-e8265c651590155262d167210ba8e3a287ae7a0e.zip |
r22006: use string_term_tdb_data()...
metze
(This used to be commit 136914502ff129b90f10794ed6474dca558c75a0)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/sharesec.c | 3 |
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", |