Skip to content

Commit

Permalink
Fix assert statement (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm authored Oct 12, 2023
1 parent 350a478 commit 5471955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/darwin/darwin_pki_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int aws_import_ecc_key_into_keychain(
struct aws_pem_object *pem_object_ptr = NULL;
/* We only check the first pem section. Currently, we dont support key with multiple pem section. */
aws_array_list_get_at_ptr(&decoded_key_buffer_list, (void **)&pem_object_ptr, index);
AWS_ASSERT(decoded_key_buffer);
AWS_ASSERT(pem_object_ptr);
CFDataRef key_data = CFDataCreate(cf_alloc, pem_object_ptr->data.buffer, pem_object_ptr->data.len);
if (!key_data) {
AWS_LOGF_ERROR(AWS_LS_IO_PKI, "static: error in creating ECC key data system call.");
Expand Down

0 comments on commit 5471955

Please sign in to comment.