summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 18452158c8..f4cc9b218f 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2234,6 +2234,9 @@ int reply_trans2(connection_struct *conn,
return -1;
}
+ if (IS_IPC(conn) && (tran_call != TRANSACT2_OPEN))
+ return(ERROR(ERRSRV,ERRaccess));
+
outsize = set_message(outbuf,0,0,True);
/* All trans2 messages we handle have smb_sucnt == 1 - ensure this