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

Misc cleanup: FreeX509 null pointer checks, and spelling cleanup. #7755

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

philljj
Copy link
Contributor

@philljj philljj commented Jul 17, 2024

Description

  • Missing null pointer checks in FreeX509().
  • misc spelling cleanup.

@philljj philljj self-assigned this Jul 17, 2024
@philljj
Copy link
Contributor Author

philljj commented Jul 18, 2024

Retest this please

@philljj philljj assigned wolfSSL-Bot and unassigned philljj Jul 18, 2024
XFREE(x509->altSigValDer, x509->heap, DYNAMIC_TYPE_X509_EXT);
#endif /* WOLFSSL_DUAL_ALG_CERTS */
#ifdef WOLFSSL_DUAL_ALG_CERTS
if (x509->sapkiDer) {
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI: XFREE is supposed to have a NULL check on it. All of the default XFREE implementations do and if a customer implements their own it also needs to. We have a large number of places in the code that make this assumption.

@dgarske dgarske merged commit b5e1888 into wolfSSL:master Jul 19, 2024
119 checks passed
@philljj philljj deleted the misc_cleanup branch August 14, 2024 12:02
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