1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

s4:smb_server: pass tsocket_addresses to the ntvfs layer

metze
This commit is contained in:
Stefan Metzmacher 2010-04-26 13:34:44 +02:00
parent c04d809ba0
commit 8fb3292c99
2 changed files with 8 additions and 4 deletions

View File

@ -70,9 +70,11 @@ static NTSTATUS make_connection_scfg(struct smbsrv_request *req,
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,("make_connection: NTVFS failed to set the addr callbacks!\n"));
DEBUG(0,("make_connection: NTVFS failed to set the addresses!\n"));
goto failed;
}

View File

@ -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;
}