]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: don't use recvfile on streams
authorRalph Boehme <slow@samba.org>
Thu, 25 Apr 2019 08:57:58 +0000 (10:57 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 9 May 2019 20:43:53 +0000 (20:43 +0000)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13938

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu May  9 20:43:53 UTC 2019 on sn-devel-184

source3/smbd/smb2_server.c

index bb2d626539b82b0a52ac866d5fabf9cae7f71da5..5057cf68d7b276990a794eab8fc3ce0ddc077eb5 100644 (file)
@@ -3541,6 +3541,9 @@ static bool is_smb2_recvfile_write(struct smbd_smb2_request_read_state *state)
        if (IS_PRINT(fsp->conn)) {
                return false;
        }
+       if (fsp->base_fsp != NULL) {
+               return false;
+       }
 
        DEBUG(10,("Doing recvfile write len = %u\n",
                (unsigned int)(state->pktfull - state->pktlen)));