diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 8bd20c2870..c3240e806d 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -1526,7 +1526,7 @@ static connection_struct *switch_message(uint8 type, struct smb_request *req, in /* does this protocol need to be run as guest? */ if ((flags & AS_GUEST) && (!change_to_guest() || - !check_access(smbd_server_fd(), lp_hostsallow(-1), + !check_access(sconn->sock, lp_hostsallow(-1), lp_hostsdeny(-1)))) { reply_nterror(req, NT_STATUS_ACCESS_DENIED); return conn; |