s3: smbd: When deleting an fsp pointer ensure we don't keep any references to it...
[kai/samba-autobuild/.git] / source3 / smbd / files.c
index 6d0f05b9db13e58b35368261ad3d62fc5a3ae129..303ab7bb92691a4bf6a888b0d9ea93d01beec360 100644 (file)
@@ -552,9 +552,7 @@ void file_free(struct smb_request *req, files_struct *fsp)
         * Clear all possible chained fsp
         * pointers in the SMB2 request queue.
         */
-       if (req != NULL && req->smb2req) {
-               remove_smb2_chained_fsp(fsp);
-       }
+       remove_smb2_chained_fsp(fsp);
 
        /* Drop all remaining extensions. */
        vfs_remove_all_fsp_extensions(fsp);