Skip to content

Ensure we call X509_STORE_CTX_cleanup on error path too#360

Merged
nox merged 1 commit intomasterfrom
init-error-path
Jun 2, 2025
Merged

Ensure we call X509_STORE_CTX_cleanup on error path too#360
nox merged 1 commit intomasterfrom
init-error-path

Conversation

@nox
Copy link
Collaborator

@nox nox commented Jun 2, 2025

As X509_STORE_CTX_init may fail after setting some values that should outlive the store context, we must ensure we clean things up on its error path too.

We also know it's always ok to call X509_STORE_CTX_cleanup as X509_STORE_CTX_init starts with a call to it.

As X509_STORE_CTX_init may fail after setting some values
that should outlive the store context, we must ensure we
clean things up on its error path too.

We also know it's always ok to call X509_STORE_CTX_cleanupas X509_STORE_CTX_init starts with a call to it.
@nox nox merged commit 15975dd into master Jun 2, 2025
25 checks passed
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.

3 participants