Skip to content

Commit

Permalink
Prevent crash when reading cert file on Apple's Network framework SSL…
Browse files Browse the repository at this point in the history
… backend (#3664)
  • Loading branch information
trengginas authored Aug 22, 2023
1 parent 828d8d1 commit af82c90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pjlib/src/pj/ssl_sock_apple.m
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ static pj_status_t create_identity_from_cert(applessl_sock_t *assock,
identity = (SecIdentityRef)
CFDictionaryGetValue((CFDictionaryRef) item,
kSecImportItemIdentity);
identity = CFRetain(identity);
break;
}
#if !TARGET_OS_IPHONE
Expand Down

0 comments on commit af82c90

Please sign in to comment.