s3/smbd: req is already validated at the beginning of open_file_ntcreate()
commit93b789c9694bbd8311b782f15ab5b114ba0c6e1e
authorRalph Boehme <slow@samba.org>
Tue, 7 Mar 2017 13:10:39 +0000 (7 14:10 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Mar 2017 09:51:46 +0000 (14 10:51 +0100)
tree2c92a4a2bb38f762573dd2148b12f56f8210392f
parent26f7b6fc8b0dfb5fcd2343b40f5dfa3a67189b3d
s3/smbd: req is already validated at the beginning of open_file_ntcreate()

req can't be NULL because the if condition surrounding this code checks
!(oplock_request & INTERNAL_OPEN_ONLY).

Bug: https://bugzilla.samba.org/show_bug.cgi?id=7537

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 8580adc1d968304b69237f289d13950972394b48)
source3/smbd/open.c