From 4c9d69f82aa8b2cdb04c5bfe5684dcd1d7ed4cfb Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Fri, 10 Mar 2017 12:43:42 +1300 Subject: s4-ntvfs: Correct mixup between local/remote addresses Signed-off-by: Andrew Bartlett Pair-Programmed-by: Gary Lockyer Signed-off-by: Gary Lockyer --- source4/ntvfs/ipc/vfs_ipc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/ntvfs') diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c index a5f2bb1642c..88ac0c1b231 100644 --- a/source4/ntvfs/ipc/vfs_ipc.c +++ b/source4/ntvfs/ipc/vfs_ipc.c @@ -253,8 +253,8 @@ static NTSTATUS ipc_open(struct ntvfs_module_context *ntvfs, struct tevent_req *subreq; const char *fname; const char *directory; - const struct tsocket_address *client_addr; - const struct tsocket_address *server_addr; + const struct tsocket_address *remote_client_addr; + const struct tsocket_address *local_server_addr; switch (oi->generic.level) { case RAW_OPEN_NTCREATEX: @@ -321,16 +321,16 @@ static NTSTATUS ipc_open(struct ntvfs_module_context *ntvfs, NT_STATUS_NOT_OK_RETURN(status); - client_addr = ntvfs_get_local_address(ipriv->ntvfs); - server_addr = ntvfs_get_remote_address(ipriv->ntvfs); + local_server_addr = ntvfs_get_local_address(ipriv->ntvfs); + remote_client_addr = ntvfs_get_remote_address(ipriv->ntvfs); subreq = tstream_npa_connect_send(p, ipriv->ntvfs->ctx->event_ctx, directory, fname, - client_addr, + remote_client_addr, NULL, - server_addr, + local_server_addr, NULL, state->session_info_transport); NT_STATUS_HAVE_NO_MEMORY(subreq); -- cgit v1.2.1