1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

r22006: use string_term_tdb_data()...

metze
(This used to be commit 136914502ff129b90f10794ed6474dca558c75a0)
This commit is contained in:
Stefan Metzmacher 2007-03-29 07:30:22 +00:00 committed by Gerald (Jerry) Carter
parent 71b8fdff85
commit e8265c6515

View File

@ -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",