From: Jeremy Allison Date: Thu, 9 May 2019 19:53:11 +0000 (-0700) Subject: s3: SMB1: Don't allow recvfile on stream fsp's. X-Git-Tag: tdb-1.4.1~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=667db8e8c7836c750085729f5062807669cbb204;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri May 10 01:14:02 UTC 2019 on sn-devel-184 --- 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);