Remove most of the remaining globals out of lib/util_sock.c.
[samba.git] / source / rpc_server / srv_netlog_nt.c
index f876ee976df634c11e9cb450ccf0ed63bd72c097..b6ae104d1c921063b77d5b5994eaf6ce4db34c23 100644 (file)
@@ -210,8 +210,8 @@ static NTSTATUS get_md4pw(char *md4pw, char *mach_acct, uint16 sec_chan_type)
      */
 
        if (!allow_access(lp_domain_hostsdeny(), lp_domain_hostsallow(),
-                         client_name(), client_addr(addr,sizeof(addr))))
-       {
+                       client_name(get_client_fd()),
+                       client_addr(get_client_fd(),addr,sizeof(addr)))) {
                DEBUG(0,("get_md4pw: Workstation %s denied access to domain\n", mach_acct));
                return False;
        }