1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

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)
This commit is contained in:
Tim Potter 2001-11-19 04:27:39 +00:00
parent b99209cce4
commit 4d5175c832

View File

@ -78,9 +78,12 @@ BOOL session_claim(user_struct *vuser)
return False; return False;
} }
hostname = client_name(); /* Don't resolve the hostname in smbd as we can pause for a long
if (strequal(hostname,"UNKNOWN")) time while waiting for DNS timeouts to occur. The correct
hostname = client_addr(); 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.username, vuser->user.unix_name);
fstrcpy(sessionid.hostname, hostname); fstrcpy(sessionid.hostname, hostname);