struct smbsrv_tcon *tcon;
NTSTATUS status;
- if (!req->session || !req->session->finished_sesssetup) {
+ if (!req->session) {
req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid));
return;
}
NTSTATUS status;
/* can only do bare tcon in share level security */
- if ((!req->session || !req->session->finished_sesssetup) && lp_security() != SEC_SHARE) {
+ if (!req->session && lp_security() != SEC_SHARE) {
return NT_STATUS_ACCESS_DENIED;
}
}
/* see if the vuid is valid */
- if ((flags & AS_USER) && (!req->session || !req->session->finished_sesssetup)) {
+ if ((flags & AS_USER) && !req->session) {
/* amazingly, the error code depends on the command */
switch (type) {
case SMBntcreateX: