Skip to content

Commit 5471955

Browse files
authored
Fix assert statement (#607)
1 parent 350a478 commit 5471955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/darwin/darwin_pki_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int aws_import_ecc_key_into_keychain(
5252
struct aws_pem_object *pem_object_ptr = NULL;
5353
/* We only check the first pem section. Currently, we dont support key with multiple pem section. */
5454
aws_array_list_get_at_ptr(&decoded_key_buffer_list, (void **)&pem_object_ptr, index);
55-
AWS_ASSERT(decoded_key_buffer);
55+
AWS_ASSERT(pem_object_ptr);
5656
CFDataRef key_data = CFDataCreate(cf_alloc, pem_object_ptr->data.buffer, pem_object_ptr->data.len);
5757
if (!key_data) {
5858
AWS_LOGF_ERROR(AWS_LS_IO_PKI, "static: error in creating ECC key data system call.");

0 commit comments

Comments
 (0)