summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
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,