update components/nstackx/nstackx_core/dfile/core/nstackx_file_manager_client.c.

Signed-off-by: Agrant <luojuheng@huawei.com>
This commit is contained in:
Agrant 2024-08-20 02:36:00 +00:00 committed by Gitee
parent 0519a64f42
commit d74a005906
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -127,8 +127,6 @@ static FileDataFrame *GetEncryptedDataFrame(FileManager *fileManager, CryptPara
goto L_END;
}
fileManager->iorBytes += (uint64_t)targetLenth;
payLoadLen = GCM_ADDED_LEN;
DFILE_LOGI(TAG, "added_len:%u", payLoadLen);
payLoadLen = targetLenth + GCM_ADDED_LEN;
frameOffset = offsetof(FileDataFrame, blockPayload);
fileDataFrame = (FileDataFrame *)calloc(1, frameOffset + payLoadLen);