summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-18 19:30:26 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-18 19:30:26 +0000
commit44d901b3e040a520c4ad9089e68c566c78acacca (patch)
treeba4675235e1858ae0c2b159946b3089c8ec7a043 /source
parentc161b2f850f124ac5f24968e7865a7d0eb68e23e (diff)
downloadsamba-44d901b3e040a520c4ad9089e68c566c78acacca.tar.gz
samba-44d901b3e040a520c4ad9089e68c566c78acacca.tar.xz
samba-44d901b3e040a520c4ad9089e68c566c78acacca.zip
check for lp_nt_pipe_support() in open calls
Diffstat (limited to 'source')
-rw-r--r--source/smbd/nttrans.c2
-rw-r--r--source/smbd/reply.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index 758c46a6cd0..128a234304e 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -491,7 +491,7 @@ int reply_ntcreate_and_X(connection_struct *conn,
/* If it's an IPC, use the pipe handler. */
- if (IS_IPC(conn)) {
+ if (IS_IPC(conn) && lp_nt_pipe_support()) {
int ret = nt_open_pipe(fname, conn, inbuf, outbuf, &pnum);
if(ret != 0)
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 5afc4593e6a..d801ce4a630 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -1353,7 +1353,7 @@ int reply_open_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
files_struct *fsp;
/* If it's an IPC, pass off the pipe handler. */
- if (IS_IPC(conn))
+ if (IS_IPC(conn) && lp_nt_pipe_support())
return reply_open_pipe_and_X(conn, inbuf,outbuf,length,bufsize);
/* XXXX we need to handle passed times, sattr and flags */