summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-01 13:39:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:08 -0500
commitb352a4532afe91cbf885e6cf99a7e1971c05ad1d (patch)
tree6cb89c3453b62e753a0bc78823cb3f5ab533da78 /source3
parent39ddd0a520bc2be31c34f43c9f2ec38a397cfa5c (diff)
downloadsamba-b352a4532afe91cbf885e6cf99a7e1971c05ad1d.tar.gz
samba-b352a4532afe91cbf885e6cf99a7e1971c05ad1d.tar.bz2
samba-b352a4532afe91cbf885e6cf99a7e1971c05ad1d.zip
r24117: use locking_key() instead of forming the TDB_DATA key
by hand metze (This used to be commit a7449e4ab390b3c1d9d5a0bbc466f71de17918e0)
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/locking.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index e4d06b8bfd..d79d73099b 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -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"));