summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-05-23 14:23:17 +0200
committerStefan Metzmacher <metze@samba.org>2018-06-14 20:52:23 +0200
commit9393d95f22276a5374f991746d48050fe0be47c5 (patch)
treeca3b2986e2f4adabce781c6972b9be2d48d26b41 /source3/smbd/process.c
parent51407b90d9363341252acdf3663886b22d1ee4c7 (diff)
downloadsamba-9393d95f22276a5374f991746d48050fe0be47c5.tar.gz
smbd: remove useless allow_access() check for AS_GUEST
We already call allow_access() when we accept the connection in smbd_add_connection(). Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index cf307b00072..e0528f3498c 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1661,33 +1661,10 @@ static connection_struct *switch_message(uint8_t type, struct smb_request *req)
* messenger service requests have this...)
*/
if (flags & AS_GUEST) {
- char *raddr;
- bool ok;
-
if (!change_to_guest()) {
reply_nterror(req, NT_STATUS_ACCESS_DENIED);
return conn;
}
-
- raddr = tsocket_address_inet_addr_string(xconn->remote_address,
- talloc_tos());
- if (raddr == NULL) {
- reply_nterror(req, NT_STATUS_NO_MEMORY);
- return conn;
- }
-
- /*
- * Haven't we checked this in smbd_process already???
- */
-
- ok = allow_access(lp_hosts_deny(-1), lp_hosts_allow(-1),
- xconn->remote_hostname, raddr);
- TALLOC_FREE(raddr);
-
- if (!ok) {
- reply_nterror(req, NT_STATUS_ACCESS_DENIED);
- return conn;
- }
}
/*