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:
parent
c04d809ba0
commit
8fb3292c99
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user