summaryrefslogtreecommitdiff
path: root/source4/smb_server/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server/service.c')
-rw-r--r--source4/smb_server/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c
index b4372344fb..24d8a5250e 100644
--- a/source4/smb_server/service.c
+++ b/source4/smb_server/service.c
@@ -156,7 +156,7 @@ NTSTATUS tcon_backend(struct smbsrv_request *req, union smb_tcon *con)
NTSTATUS status;
/* can only do bare tcon in share level security */
- if (req->session == NULL && lp_security() != SEC_SHARE) {
+ if ((!req->session || !req->session->finished_sesssetup) && lp_security() != SEC_SHARE) {
return NT_STATUS_ACCESS_DENIED;
}