Skip to content

Commit

Permalink
trivial change to be simpler, and more similar to pre-existing error-…
Browse files Browse the repository at this point in the history
…handling
  • Loading branch information
graebm committed Jul 8, 2024
1 parent ccd2212 commit e1b6f07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/windows/secure_channel_tls_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1585,9 +1585,7 @@ static int s_handler_shutdown(

if (outgoing_message->message_data.capacity < output_buffer.cbBuffer) {
aws_mem_release(outgoing_message->allocator, outgoing_message);
if (error_code == 0) {
error_code = AWS_IO_TLS_ERROR_WRITE_FAILURE;
}
error_code = AWS_IO_TLS_ERROR_WRITE_FAILURE;
abort_immediately = true;
goto cleanup;
}
Expand Down

0 comments on commit e1b6f07

Please sign in to comment.