mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r24117: use locking_key() instead of forming the TDB_DATA key
by hand metze
This commit is contained in:
parent
8cccf470cb
commit
a7449e4ab3
@ -782,10 +782,7 @@ struct share_mode_lock *get_share_mode_lock(TALLOC_CTX *mem_ctx,
|
||||
const char *fname)
|
||||
{
|
||||
struct share_mode_lock *lck;
|
||||
TDB_DATA key;
|
||||
|
||||
key.dptr = (unsigned char *)&id;
|
||||
key.dsize = sizeof(id);
|
||||
TDB_DATA key = locking_key(id);
|
||||
|
||||
if (!(lck = TALLOC_P(mem_ctx, struct share_mode_lock))) {
|
||||
DEBUG(0, ("talloc failed\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user