summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-16 17:18:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:21 -0500
commit5c35b41b871d254de114890ed141786bcd454d72 (patch)
tree7f3560a2ea90d2df44663687ba5da056415b9745 /source4/smb_server
parentdae30e5b50066d21617dabae4752559dd956c09a (diff)
downloadsamba-5c35b41b871d254de114890ed141786bcd454d72.tar.gz
samba-5c35b41b871d254de114890ed141786bcd454d72.tar.bz2
samba-5c35b41b871d254de114890ed141786bcd454d72.zip
r11745: one more check for a valid session
metze (This used to be commit 92aae176fbde22bcc6fe58aa651d3d4a421fdf60)
Diffstat (limited to 'source4/smb_server')
-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;
}