summaryrefslogtreecommitdiff
path: root/source/smbd/session.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-19 04:27:39 +0000
committerTim Potter <tpot@samba.org>2001-11-19 04:27:39 +0000
commit2e89165f22d9e9c1fa749ae54957d0ec84a1497d (patch)
tree026937ec9f151cc163279d7d88c4b4eb305ae32c /source/smbd/session.c
parentb792c9317ab62fe407de34ed811cc883a7652cc4 (diff)
downloadsamba-2e89165f22d9e9c1fa749ae54957d0ec84a1497d.tar.gz
Don't resolve the hostname in smbd as we can pause for a long time while
waiting for DNS timeouts to occur. The correct place to do this is in the code that displays the session information.
Diffstat (limited to 'source/smbd/session.c')
-rw-r--r--source/smbd/session.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/smbd/session.c b/source/smbd/session.c
index 9efc3e6b753..d483f12d169 100644
--- a/source/smbd/session.c
+++ b/source/smbd/session.c
@@ -78,9 +78,12 @@ BOOL session_claim(user_struct *vuser)
return False;
}
- hostname = client_name();
- if (strequal(hostname,"UNKNOWN"))
- hostname = client_addr();
+ /* Don't resolve the hostname in smbd as we can pause for a long
+ time while waiting for DNS timeouts to occur. The correct
+ place to do this is in the code that displays the session
+ information. */
+
+ hostname = client_addr();
fstrcpy(sessionid.username, vuser->user.unix_name);
fstrcpy(sessionid.hostname, hostname);