Skip to content

Commit d581632

Browse files
committed
allow it to be calculated, just by pass the calculation
1 parent bdc9c81 commit d581632

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/s3_request_messages.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,9 @@ static int s_calculate_in_memory_checksum_helper(
838838
struct aws_byte_cursor data,
839839
struct aws_s3_upload_request_checksum_context *checksum_context) {
840840
AWS_ASSERT(checksum_context);
841-
AWS_ASSERT(!checksum_context->checksum_calculated);
842-
AWS_ASSERT(checksum_context->algorithm != AWS_SCA_NONE);
841+
if (checksum_context->checksum_calculated) {
842+
return AWS_OP_SUCCESS;
843+
}
843844

844845
int ret_code = AWS_OP_ERR;
845846
/* Calculate checksum for output buffer only (no header/trailer) */

0 commit comments

Comments
 (0)