s3:smbd: Don't set fsp->oplock_type before we've granted any oplocks.
commiteb5ae0c25f314949c6ffb2ecd4ff91363810b437
authorJeremy Allison <jra@samba.org>
Thu, 23 Oct 2014 00:53:01 +0000 (22 17:53 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 4 Dec 2014 20:11:11 +0000 (4 21:11 +0100)
treea103acd7bd4aa4c03a975fbcdc2da0cfa7efb03f
parent55fe85747359cf3d001991a21365d051148f0d57
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>
(cherry picked from commit 1020c5942a996e3e900e2b81f9964dd61fc9c71d)
source3/smbd/open.c