summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-11 01:28:57 +0000
committerJeremy Allison <jra@samba.org>2000-03-11 01:28:57 +0000
commit741dfefd565dbcd9ec8a861ebe3a7e6c0e80eac1 (patch)
treed38646e6b6e4942906a9400c85e0da2d0ecdd471 /source3/smbd
parent7b97d056a1deae9e885765153f596e8e30e334b1 (diff)
downloadsamba-741dfefd565dbcd9ec8a861ebe3a7e6c0e80eac1.tar.gz
samba-741dfefd565dbcd9ec8a861ebe3a7e6c0e80eac1.tar.bz2
samba-741dfefd565dbcd9ec8a861ebe3a7e6c0e80eac1.zip
Fix stupid logic bug in detecting start-of-pdu in writeX on pipe.
Found by JF. Jeremy. (This used to be commit 8315583694249278c57948406c1f48e2128f2b08)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/pipes.c3
1 files changed, 2 insertions, 1 deletions
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)