Skip to content

Commit

Permalink
Properly raise error in STSWebIdentity (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored Feb 7, 2024
1 parent 1194039 commit 8e5e461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/credentials_provider_sts_web_identity.c
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ static int s_construct_endpoint(
const struct aws_string *service_name) {

if (!allocator || !endpoint || !region || !service_name) {
return AWS_ERROR_INVALID_ARGUMENT;
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
}
aws_byte_buf_clean_up(endpoint);

Expand Down Expand Up @@ -906,7 +906,7 @@ static int s_construct_endpoint(
static int s_generate_uuid_to_buf(struct aws_allocator *allocator, struct aws_byte_buf *dst) {

if (!allocator || !dst) {
return AWS_ERROR_INVALID_ARGUMENT;
return aws_raise_error(AWS_ERROR_INVALID_ARGUMENT);
}

struct aws_uuid uuid;
Expand Down

0 comments on commit 8e5e461

Please sign in to comment.