diff options
author | Tim Potter <tpot@samba.org> | 2001-11-19 04:26:41 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-11-19 04:26:41 +0000 |
commit | 46ec55005c39cbd73b56a24ebe973bfc6599cb0b (patch) | |
tree | 503e75859abf4207433a0388a3358fbdecf829cd | |
parent | 465ecb708b96c74938e27e6fe1dc018f106696be (diff) | |
download | samba-46ec55005c39cbd73b56a24ebe973bfc6599cb0b.tar.gz samba-46ec55005c39cbd73b56a24ebe973bfc6599cb0b.tar.xz samba-46ec55005c39cbd73b56a24ebe973bfc6599cb0b.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.
-rw-r--r-- | source/smbd/session.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/smbd/session.c b/source/smbd/session.c index bf21677f566..7f057256cac 100644 --- a/source/smbd/session.c +++ b/source/smbd/session.c @@ -89,9 +89,12 @@ BOOL session_claim(uint16 vuid) 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); |