From 8fb3292c993302b74247d6fa4795b279b131abcf Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 26 Apr 2010 13:34:44 +0200 Subject: s4:smb_server: pass tsocket_addresses to the ntvfs layer metze --- source4/smb_server/smb2/tcon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/smb_server/smb2') diff --git a/source4/smb_server/smb2/tcon.c b/source4/smb_server/smb2/tcon.c index ed5a262b81..4247ef8723 100644 --- a/source4/smb_server/smb2/tcon.c +++ b/source4/smb_server/smb2/tcon.c @@ -304,9 +304,11 @@ static NTSTATUS smb2srv_tcon_backend(struct smb2srv_request *req, union smb_tcon goto failed; } - status = ntvfs_set_addr_callbacks(tcon->ntvfs, smbsrv_get_my_addr, smbsrv_get_peer_addr, req->smb_conn); + status = ntvfs_set_addresses(tcon->ntvfs, + req->smb_conn->connection->local_address, + req->smb_conn->connection->remote_address); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0,("smb2srv_tcon_backend: NTVFS failed to set the addr callbacks!\n")); + DEBUG(0,("smb2srv_tcon_backend: NTVFS failed to set the address!\n")); goto failed; } -- cgit