From: Ralph Boehme Date: Mon, 29 Jan 2024 15:33:41 +0000 (+0100) Subject: smbprofile: SMB2-READ result NT_STATUS_END_OF_FILE is not an error X-Git-Tag: tevent-0.17.0~339 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b01a271a6916790b46f960e8d76f524a990d333;p=thirdparty%2Fsamba.git smbprofile: SMB2-READ result NT_STATUS_END_OF_FILE is not an error Signed-off-by: Ralph Boehme Reviewed-by: Guenther Deschner --- diff --git a/source3/include/smbprofile.h b/source3/include/smbprofile.h index 9692ebadef1..550c7924cfd 100644 --- a/source3/include/smbprofile.h +++ b/source3/include/smbprofile.h @@ -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) {