summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-27 15:12:32 +0200
committerStefan Metzmacher <metze@samba.org>2010-05-27 07:13:56 +0200
commit9a6636a56e3565202d71ae7049431e3764575b79 (patch)
tree59057e1ef8bbc09ea751c890c8bdc80120eea342 /source3/smbd
parent56ebbb53c80a49f2d8dda8a108afc07669af333e (diff)
downloadsamba-9a6636a56e3565202d71ae7049431e3764575b79.tar.gz
samba-9a6636a56e3565202d71ae7049431e3764575b79.tar.bz2
samba-9a6636a56e3565202d71ae7049431e3764575b79.zip
s3:rpc_server: pass down local and remote tsocket_address to np_open()
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/pipes.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c
index e2c0cdc2f3..17d2678e35 100644
--- a/source3/smbd/pipes.c
+++ b/source3/smbd/pipes.c
@@ -26,6 +26,7 @@
#include "includes.h"
+#include "smbd/globals.h"
#define PIPE "\\PIPE\\"
#define PIPELEN strlen(PIPE)
@@ -65,7 +66,9 @@ NTSTATUS open_np_file(struct smb_request *smb_req, const char *name,
return status;
}
- status = np_open(fsp, name, conn->client_address,
+ status = np_open(fsp, name,
+ conn->sconn->local_address,
+ conn->sconn->remote_address,
conn->server_info, &fsp->fake_file_handle);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(10, ("np_open(%s) returned %s\n", name,