smbd: Fix bug 10216
authorVolker Lendecke <vl@samba.org>
Fri, 18 Oct 2013 15:12:35 +0000 (15:12 +0000)
committerStefan Metzmacher <metze@samba.org>
Wed, 23 Oct 2013 09:44:37 +0000 (11:44 +0200)
commitf892bdb2047c86e53f875e8f2c58858d2dacc363
tree35a6683616f8908fba56cd66f0b35ed813cdc6b6
parent4e06c61b41fdde21fafaeee3c4fb3366744de9d9
smbd: Fix bug 10216

While refactoring find_oplock_types to validate_oplock_types I forgot
that stat opens will end up in locking.tdb. So even with a batch oplock
around we can have more than one entry. This means the consistency check
in validate_oplock_types was wrong and too strict.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/open.c