We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc9c81 commit d581632Copy full SHA for d581632
source/s3_request_messages.c
@@ -838,8 +838,9 @@ static int s_calculate_in_memory_checksum_helper(
838
struct aws_byte_cursor data,
839
struct aws_s3_upload_request_checksum_context *checksum_context) {
840
AWS_ASSERT(checksum_context);
841
- AWS_ASSERT(!checksum_context->checksum_calculated);
842
- AWS_ASSERT(checksum_context->algorithm != AWS_SCA_NONE);
+ if (checksum_context->checksum_calculated) {
+ return AWS_OP_SUCCESS;
843
+ }
844
845
int ret_code = AWS_OP_ERR;
846
/* Calculate checksum for output buffer only (no header/trailer) */
0 commit comments