mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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 commit is contained in:
parent
b792c9317a
commit
2e89165f22
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user