smbd: Slightly simplify open_mode_check()
authorVolker Lendecke <vl@samba.org>
Thu, 4 Jul 2019 11:55:41 +0000 (13:55 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 8 Jul 2019 16:22:37 +0000 (16:22 +0000)
commitb16f7113ebfe324b847f136912d24a25b983aae5
tree27ad3aa4e15da123163c9b0960f45ef06af67d40
parent9c81d7ec8d0c724dbb714b05ae73175276e67473
smbd: Slightly simplify open_mode_check()

If there are no share modes, we'll just not enter the loop.

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