From 96ae4570230d2d47e23da6909f6e21dd43a19868 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 14 Aug 2010 10:22:12 +0200 Subject: s3: Remove get_client_fd() --- source3/rpc_server/srv_netlog_nt.c | 4 ++-- source3/rpc_server/srv_spoolss_nt.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c index b3e54050d4..4433a707ad 100644 --- a/source3/rpc_server/srv_netlog_nt.c +++ b/source3/rpc_server/srv_netlog_nt.c @@ -610,8 +610,8 @@ static NTSTATUS get_md4pw(struct samr_Password *md4pw, const char *mach_acct, */ if (!allow_access(lp_domain_hostsdeny(), lp_domain_hostsallow(), - client_name(get_client_fd()), - client_addr(get_client_fd(),addr,sizeof(addr)))) { + client_name(smbd_server_fd()), + client_addr(smbd_server_fd(),addr,sizeof(addr)))) { DEBUG(0,("get_md4pw: Workstation %s denied access to domain\n", mach_acct)); return False; } diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index cec0b7138e..1c04ef167a 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1642,7 +1642,8 @@ WERROR _spoolss_OpenPrinterEx(struct pipes_struct *p, /* check smb.conf parameters and the the sec_desc */ - if ( !check_access(get_client_fd(), lp_hostsallow(snum), lp_hostsdeny(snum)) ) { + if ( !check_access(smbd_server_fd(), lp_hostsallow(snum), + lp_hostsdeny(snum)) ) { DEBUG(3, ("access DENIED (hosts allow/deny) for printer open\n")); ZERO_STRUCTP(r->out.handle); return WERR_ACCESS_DENIED; -- cgit