diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-05 20:50:22 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-05 20:50:22 +0000 |
commit | 6d9ce383061782b888f4b3403099a3c2c34b1a4c (patch) | |
tree | 60c22c6e516ee4bbb5f3faed85dc1a226e5f0919 /source3/locking/locking.c | |
parent | 652d98c0bc22b761de72d0ce9c5a5f96412453fe (diff) | |
download | samba-6d9ce383061782b888f4b3403099a3c2c34b1a4c.tar.gz samba-6d9ce383061782b888f4b3403099a3c2c34b1a4c.tar.xz samba-6d9ce383061782b888f4b3403099a3c2c34b1a4c.zip |
Fix for uninitialized memory read in brlock code. brl_locktest now needs
to correctly set the fnum, as the brl_conflict code looks at it.
Jeremy.
(This used to be commit df87259a356b91989604a10b3691480dcd16cf3f)
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r-- | source3/locking/locking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 47ae917f9af..07411e89191 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -68,7 +68,7 @@ BOOL is_locked(files_struct *fsp,connection_struct *conn, if (!lp_locking(snum) || !lp_strict_locking(snum)) return(False); - ret = !brl_locktest(fsp->dev, fsp->inode, + ret = !brl_locktest(fsp->dev, fsp->inode, fsp->fnum, global_smbpid, sys_getpid(), conn->cnum, offset, count, lock_type); |