summaryrefslogtreecommitdiff
path: root/source3/smbd/session.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-14 10:22:12 +0200
committerVolker Lendecke <vl@samba.org>2010-08-16 13:13:10 +0200
commit96ae4570230d2d47e23da6909f6e21dd43a19868 (patch)
tree2227d283971d61991b7859ef05a8390e37eb00ee /source3/smbd/session.c
parenta482b3e14ec4e3eada9c2477c9eae2bfbe017f53 (diff)
downloadsamba-96ae4570230d2d47e23da6909f6e21dd43a19868.tar.gz
samba-96ae4570230d2d47e23da6909f6e21dd43a19868.tar.bz2
samba-96ae4570230d2d47e23da6909f6e21dd43a19868.zip
s3: Remove get_client_fd()
Diffstat (limited to 'source3/smbd/session.c')
-rw-r--r--source3/smbd/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index 64274b771e..92742384bf 100644
--- a/source3/smbd/session.c
+++ b/source3/smbd/session.c
@@ -131,9 +131,9 @@ bool session_claim(struct server_id pid, user_struct *vuser)
client_name() handles this case internally.
*/
- hostname = client_name(get_client_fd());
+ hostname = client_name(smbd_server_fd());
if (strcmp(hostname, "UNKNOWN") == 0) {
- hostname = client_addr(get_client_fd(),addr,sizeof(addr));
+ hostname = client_addr(smbd_server_fd(),addr,sizeof(addr));
}
fstrcpy(sessionid.username, vuser->server_info->unix_name);
@@ -144,7 +144,7 @@ bool session_claim(struct server_id pid, user_struct *vuser)
sessionid.gid = vuser->server_info->utok.gid;
fstrcpy(sessionid.remote_machine, get_remote_machine_name());
fstrcpy(sessionid.ip_addr_str,
- client_addr(get_client_fd(),addr,sizeof(addr)));
+ client_addr(smbd_server_fd(),addr,sizeof(addr)));
sessionid.connect_start = time(NULL);
if (!smb_pam_claim_session(sessionid.username, sessionid.id_str,