]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbprofile: SMB2-READ result NT_STATUS_END_OF_FILE is not an error
authorRalph Boehme <slow@samba.org>
Mon, 29 Jan 2024 15:33:41 +0000 (16:33 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 11 Apr 2025 18:46:40 +0000 (18:46 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/include/smbprofile.h

index 9692ebadef1f88465805fa005e816dfe223ea022..550c7924cfd4a67800c9379d0e0fd5f1fa657507 100644 (file)
@@ -541,6 +541,11 @@ static inline void smbprofile_update_failed_count(
                        ok = true;
                }
                break;
+       case SMB2_OP_READ:
+               if (NT_STATUS_EQUAL(status, NT_STATUS_END_OF_FILE)) {
+                       ok = true;
+               }
+               break;
        }
 
        if (!ok) {