s3/smbd: req is already validated at the beginning of open_file_ntcreate()
commita8db18aa97c5af73c1df5559e8c233469f033c7f
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 11:49:24 +0000 (14 12:49 +0100)
tree53a2bc66612331451182be46aed41ab1bab1abeb
parent68c6af1dd86d438941333fecaeab9be269165ddf
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