From dd0b83f086a5382aeaf2487b82dee5b09e16d18b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 9 May 2019 12:53:11 -0700 Subject: [PATCH] s3: SMB1: Don't allow recvfile on stream fsp's. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13938 Signed-off-by: Jeremy Allison --- source3/smbd/reply.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index ef93e63c821..c1060e52b99 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -4972,6 +4972,10 @@ bool is_valid_writeX_buffer(struct smbXsrv_connection *xconn, DEBUG(10,("is_valid_writeX_buffer: printing tid\n")); return false; } + if (fsp->base_fsp != NULL) { + DEBUG(10,("is_valid_writeX_buffer: stream fsp\n")); + return false; + } doff = SVAL(inbuf,smb_vwv11); numtowrite = SVAL(inbuf,smb_vwv10); -- 2.21.0.1020.gf2820cf01a-goog