Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a nil check SecCertificateCopySubjectSummary #250

Merged
merged 2 commits into from
May 19, 2021

Conversation

CraigSiemens
Copy link
Contributor

Fixes #249

…ctSummary before logging and releasing the value
if (certificateSubject != nil) {
TSKLog(@"Checking certificate with CN: %@", certificateSubject);
CFRelease(certificateSubject);
}
Copy link
Member

@nabla-c0d3 nabla-c0d3 Apr 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also log something like TSKLog(@"Could not parse certificate subject"); in an else branch.

Copy link
Member

@nabla-c0d3 nabla-c0d3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! Just left a minor request.

@CraigSiemens
Copy link
Contributor Author

@nabla-c0d3 Could you take a look at this again when you have the chance?

@nabla-c0d3 nabla-c0d3 merged commit 38f2e61 into datatheorem:master May 19, 2021
@nabla-c0d3
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when trying to release NULL
2 participants