1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-29 04:49:44 +03:00

check for lp_nt_pipe_support() in open calls

This commit is contained in:
Andrew Tridgell -
parent c161b2f850
commit 44d901b3e0
2 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ int reply_ntcreate_and_X(connection_struct *conn,
/* If it's an IPC, use the pipe handler. */ /* 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); int ret = nt_open_pipe(fname, conn, inbuf, outbuf, &pnum);
if(ret != 0) if(ret != 0)

View File

@ -1353,7 +1353,7 @@ int reply_open_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
files_struct *fsp; files_struct *fsp;
/* If it's an IPC, pass off the pipe handler. */ /* 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); return reply_open_pipe_and_X(conn, inbuf,outbuf,length,bufsize);
/* XXXX we need to handle passed times, sattr and flags */ /* XXXX we need to handle passed times, sattr and flags */