summaryrefslogtreecommitdiff
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
commit4d5175c832d905e06c0840388b925e14b58024af (patch)
tree513c20d1163b6ab9bc04941ad1a11f31c6ac37d0
parentb99209cce4a91de279bb62dbc4246845bf0e755d (diff)
downloadsamba-4d5175c832d905e06c0840388b925e14b58024af.tar.gz
samba-4d5175c832d905e06c0840388b925e14b58024af.tar.bz2
samba-4d5175c832d905e06c0840388b925e14b58024af.zip
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. (This used to be commit 2e89165f22d9e9c1fa749ae54957d0ec84a1497d)
-rw-r--r--source3/smbd/session.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/smbd/session.c b/source3/smbd/session.c
index 9efc3e6b75..d483f12d16 100644
--- a/source3/smbd/session.c
+++ b/source3/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);