Skip to content

Add nullptr check in logCertVerificationFailure - #128

Merged
thisisnsh merged 1 commit into
mainfrom
fix-cert-verification-null-check
Aug 29, 2026
Merged

Add nullptr check in logCertVerificationFailure#128
thisisnsh merged 1 commit into
mainfrom
fix-cert-verification-null-check

Conversation

@thisisnsh

Copy link
Copy Markdown
Contributor

Describe your changes

  • In logCertVerificationFailure check if following pointers are not null before accessing them:
    • X509_STORE_CTX cert context
    • X509 cert
    • X509_NAME subject name
  • Add tests
  • Add error code, message and depth to log for better debugging

Testing performed

  • Unit tests

@thisisnsh
thisisnsh merged commit 80f620b into main Aug 29, 2026
7 checks passed
@thisisnsh
thisisnsh deleted the fix-cert-verification-null-check branch August 29, 2026 00:44
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.

2 participants