diff options
-rw-r--r-- | source3/smbd/session.c | 9 |
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); |