+ char *addr = client_addr(fd);
+ char *host = client_name(fd);
+
+ if (!allow_access(addr, host, lp_hosts_allow(i), lp_hosts_deny(i))) {
+ rprintf(FERROR,"rsync denied on module %s from %s (%s)\n",
+ lp_name(i), client_name(fd), client_addr(fd));
+ return -1;
+ }