summaryrefslogtreecommitdiff
path: root/source3/lib/access.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-11-07 09:04:57 +0000
committerVolker Lendecke <vlendec@samba.org>2003-11-07 09:04:57 +0000
commit99cbab5c3b2fa9af822415a24832892e869f1d3e (patch)
tree93482a06824902f98dd288759fcea7d04be1b76e /source3/lib/access.c
parent6a594ea65e9a6a07a64b68f2d987795eba27e324 (diff)
downloadsamba-99cbab5c3b2fa9af822415a24832892e869f1d3e.tar.gz
samba-99cbab5c3b2fa9af822415a24832892e869f1d3e.tar.bz2
samba-99cbab5c3b2fa9af822415a24832892e869f1d3e.zip
From 3_0:
Simple rename of get_socket_addr to get_peer_addr and get_socket_name to get_peer_name. This is to get closer to the getsockname/getpeername system functions. Next step will be the %i macro for the local IP address. I still want to play %L-games in times of port 445. Volker (This used to be commit 99311b437be050fd9ee656cd184f299993d20bfb)
Diffstat (limited to 'source3/lib/access.c')
-rw-r--r--source3/lib/access.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/access.c b/source3/lib/access.c
index 62414726fb..a642a92d71 100644
--- a/source3/lib/access.c
+++ b/source3/lib/access.c
@@ -311,21 +311,21 @@ BOOL check_access(int sock, const char **allow_list, const char **deny_list)
if (only_ipaddrs_in_list(allow_list) && only_ipaddrs_in_list(deny_list)) {
only_ip = True;
DEBUG (3, ("check_access: no hostnames in host allow/deny list.\n"));
- ret = allow_access(deny_list,allow_list, "", get_socket_addr(sock));
+ ret = allow_access(deny_list,allow_list, "", get_peer_addr(sock));
} else {
DEBUG (3, ("check_access: hostnames in host allow/deny list.\n"));
- ret = allow_access(deny_list,allow_list, get_socket_name(sock,True),
- get_socket_addr(sock));
+ ret = allow_access(deny_list,allow_list, get_peer_name(sock,True),
+ get_peer_addr(sock));
}
if (ret) {
DEBUG(2,("Allowed connection from %s (%s)\n",
- only_ip ? "" : get_socket_name(sock,True),
- get_socket_addr(sock)));
+ only_ip ? "" : get_peer_name(sock,True),
+ get_peer_addr(sock)));
} else {
DEBUG(0,("Denied connection from %s (%s)\n",
- only_ip ? "" : get_socket_name(sock,True),
- get_socket_addr(sock)));
+ only_ip ? "" : get_peer_name(sock,True),
+ get_peer_addr(sock)));
}
}