smbd: Clarify smb2 lock checks
commit7d71e8d6575f6893b590f1a86c34541ebbb74740
authorVolker Lendecke <vl@samba.org>
Mon, 30 Jun 2014 09:39:20 +0000 (30 09:39 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 1 Jul 2014 22:11:23 +0000 (2 00:11 +0200)
tree7bbe2f952417f82e4f9c228c6d43ec1ba367de59
parent4709373cdf75d9a84eaaf1f23cf4bf07b8cb63c5
smbd: Clarify smb2 lock checks

When reading the code it was not immediately clear to me how one of the
conditions in [MS-SMB2] 3.3.5.14.2 was satisfied. A separate loop to me
is clearer and given that we don't expect thousands of locks in a single
call also not significantly less efficient.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_lock.c