From 4d5175c832d905e06c0840388b925e14b58024af Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 19 Nov 2001 04:27:39 +0000 Subject: 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) --- source3/smbd/session.c | 9 ++++++--- 1 file 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); -- cgit