diff options
Diffstat (limited to 'source/smb_server/tcon.c')
-rw-r--r-- | source/smb_server/tcon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smb_server/tcon.c b/source/smb_server/tcon.c index 1c934baf8c6..e0def0ab3f6 100644 --- a/source/smb_server/tcon.c +++ b/source/smb_server/tcon.c @@ -94,8 +94,10 @@ static int smbsrv_tcon_destructor(void *ptr) struct smbsrv_tcon *tcon = talloc_get_type(ptr, struct smbsrv_tcon); struct smbsrv_tcons_context *tcons_ctx; + struct socket_address *client_addr; + client_addr = socket_get_peer_addr(tcon->smb_conn->connection->socket, ptr); DEBUG(3,("%s closed connection to service %s\n", - socket_get_peer_addr(tcon->smb_conn->connection->socket, tcon), + client_addr ? client_addr->addr : "(unknown)", lp_servicename(tcon->service))); /* tell the ntvfs backend that we are disconnecting */ |