summaryrefslogtreecommitdiffstats
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-02-26 16:30:25 -0800
committerJeremy Allison <jra@samba.org>2014-02-27 10:42:36 -0800
commitabf08ed544ce05ea5a6e6ea2e531b6a2d97e15cc (patch)
tree2647eff012c741e84833ef5f9106f7d8b495a495 /source3/smbd/reply.c
parentf0030c619bcf22dbe9eed54b2c0dc9c61f564838 (diff)
downloadsamba-abf08ed544ce05ea5a6e6ea2e531b6a2d97e15cc.tar.gz
samba-abf08ed544ce05ea5a6e6ea2e531b6a2d97e15cc.tar.xz
samba-abf08ed544ce05ea5a6e6ea2e531b6a2d97e15cc.zip
s3: smbd: Ensure brl_get_locks_readonly() always returns a valid struct byte_range_lock even if there are no locks.
brl_get_locks_readonly() currently returns NULL when it can't find any byte range locks on the file. This is an error - it should return a valid struct byte_range_lock containing num_locks == 0 so it can be cached. Returning NULL when there are no locks causes POSIX lock tests to fail returning NT_STATUS_NO_MEMORY (as it thinks it can't allocate the struct) instead of NT_STATUS_OK. Fixes bug: Bug 10431 - STATUS_NO_MEMORY response from Query File Posix Lock request https://bugzilla.samba.org/show_bug.cgi?id=10431 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
Diffstat (limited to 'source3/smbd/reply.c')
0 files changed, 0 insertions, 0 deletions