s3:smbd: Don't set fsp->oplock_type before we've granted any oplocks.
authorJeremy Allison <jra@samba.org>
Thu, 23 Oct 2014 00:53:01 +0000 (17:53 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 11 Nov 2014 20:41:05 +0000 (21:41 +0100)
commit1020c5942a996e3e900e2b81f9964dd61fc9c71d
tree2b47c278c61aedf936897385b9bd053e609f6fed
parenta08b0e78220f84f87b2af1535d645a994a5c93ab
s3:smbd: Don't set fsp->oplock_type before we've granted any oplocks.

It's not needed, and may lead to unexpected side effects.

grant_fsp_oplock_type() is the only place to touch this.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/open.c