From dca8df1acb75d61db1b309f961ff20994d42c14f Mon Sep 17 00:00:00 2001 From: ilevyor <81260226+ilevyor@users.noreply.github.com> Date: Tue, 20 Jul 2021 10:41:41 -0700 Subject: [PATCH] ifndef BYO_CRYPTO (#144) * goto on_error; * AWS_FATAL_ASSERT --- source/s3_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/s3_client.c b/source/s3_client.c index 79889df81..a348c7b64 100644 --- a/source/s3_client.c +++ b/source/s3_client.c @@ -336,7 +336,8 @@ struct aws_s3_client *aws_s3_client_new( aws_tls_connection_options_copy(client->tls_connection_options, client_config->tls_connection_options); } else { #ifdef BYO_CRYPTO - AWS_ASSERT(false); + AWS_FATAL_ASSERT(false); + goto on_error; #else struct aws_tls_ctx_options default_tls_ctx_options; AWS_ZERO_STRUCT(default_tls_ctx_options);