Skip to content

Commit b1c8f33

Browse files
committed
don't generate the checksum on failure
1 parent 5ec3e0f commit b1c8f33

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

source/s3_checksum_stream.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ static void s_aws_input_checksum_stream_destroy(struct aws_checksum_stream *impl
111111
if (!impl) {
112112
return;
113113
}
114-
115-
/* Compute the checksum of whatever was read, if we didn't reach the end of the underlying stream. */
116-
s_finalize_checksum(impl);
117-
118114
aws_checksum_destroy(impl->checksum);
119115
aws_input_stream_release(impl->old_stream);
120116
aws_byte_buf_clean_up(&impl->checksum_result);

0 commit comments

Comments
 (0)