From 741dfefd565dbcd9ec8a861ebe3a7e6c0e80eac1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 11 Mar 2000 01:28:57 +0000 Subject: Fix stupid logic bug in detecting start-of-pdu in writeX on pipe. Found by JF. Jeremy. (This used to be commit 8315583694249278c57948406c1f48e2128f2b08) --- source3/smbd/pipes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd/pipes.c') diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index 65a71e1c00..5d5c6a653a 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -157,7 +157,8 @@ int reply_pipe_write_and_X(char *inbuf,char *outbuf,int length,int bufsize) size_t numtowrite = SVAL(inbuf,smb_vwv10); int nwritten = -1; int smb_doff = SVAL(inbuf, smb_vwv11); - BOOL pipe_start_message_raw = ((SVAL(inbuf, smb_vwv7) & (PIPE_START_MESSAGE|PIPE_RAW_MODE)) != 0); + BOOL pipe_start_message_raw = ((SVAL(inbuf, smb_vwv7) & (PIPE_START_MESSAGE|PIPE_RAW_MODE)) == + (PIPE_START_MESSAGE|PIPE_RAW_MODE)); char *data; if (!p) -- cgit