diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-04-27 15:45:12 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-04-27 15:45:12 +0200 |
commit | 54abb0724b5577eb7a9a132f647649dc30931b18 (patch) | |
tree | 95163f610a95297d751be57bc0cdf49b3ba14d87 /source4/smb_server | |
parent | 8fce492ffc0f276d433825ebc1ec4c7ad4c33cfa (diff) | |
download | samba-54abb0724b5577eb7a9a132f647649dc30931b18.tar.gz samba-54abb0724b5577eb7a9a132f647649dc30931b18.tar.bz2 samba-54abb0724b5577eb7a9a132f647649dc30931b18.zip |
s4:smb_server: use tsocket_address_string() to display the client address
metze
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/tcon.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/smb_server/tcon.c b/source4/smb_server/tcon.c index 3259ec3799..34c303c53b 100644 --- a/source4/smb_server/tcon.c +++ b/source4/smb_server/tcon.c @@ -22,6 +22,7 @@ #include "includes.h" #include "smb_server/smb_server.h" #include "smbd/service_stream.h" +#include "lib/tsocket/tsocket.h" #include "ntvfs/ntvfs.h" /**************************************************************************** @@ -96,11 +97,12 @@ struct smbsrv_tcon *smbsrv_smb2_tcon_find(struct smbsrv_session *smb_sess, static int smbsrv_tcon_destructor(struct smbsrv_tcon *tcon) { struct smbsrv_tcons_context *tcons_ctx; - struct socket_address *client_addr; + struct tsocket_address *client_addr; + + client_addr = tcon->smb_conn->connection->remote_address; - client_addr = socket_get_peer_addr(tcon->smb_conn->connection->socket, tcon); DEBUG(3,("%s closed connection to service %s\n", - client_addr ? client_addr->addr : "(unknown)", + tsocket_address_string(client_addr, tcon), tcon->share_name)); /* tell the ntvfs backend that we are disconnecting */ |