diff options
author | Wayne Davison <wayned@samba.org> | 2011-01-03 18:59:08 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-01-03 19:04:06 -0800 |
commit | bf4170ade8858608fbb7191eabaab996d61ba47e (patch) | |
tree | 02eb1722a51e6c8d600e09fdfa3a2914b2eba0b1 /clientserver.c | |
parent | 6500e0769a56919df1d47759828104a08df850bb (diff) | |
download | android_external_rsync-bf4170ade8858608fbb7191eabaab996d61ba47e.tar.gz android_external_rsync-bf4170ade8858608fbb7191eabaab996d61ba47e.tar.bz2 android_external_rsync-bf4170ade8858608fbb7191eabaab996d61ba47e.zip |
Daemon supports forward-DNS lookups for simple hostnames
in hosts deny/allow config settings.
Diffstat (limited to 'clientserver.c')
-rw-r--r-- | clientserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clientserver.c b/clientserver.c index 21ef01c5..8b6b896f 100644 --- a/clientserver.c +++ b/clientserver.c @@ -515,7 +515,7 @@ static int rsync_module(int f_in, int f_out, int i, const char *addr, const char set_env_str("RSYNC_HOST_NAME", host); set_env_str("RSYNC_HOST_ADDR", addr); - if (!allow_access(addr, host, lp_hosts_allow(i), lp_hosts_deny(i))) { + if (!allow_access(addr, &host, i)) { rprintf(FLOG, "rsync denied on module %s from %s (%s)\n", name, host, addr); if (!lp_list(i)) |