Skip to content

Commit

Permalink
CID 426066 fix check if null before free
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Oct 21, 2024
1 parent 104c805 commit 0c77eef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -14111,7 +14111,9 @@ int wolfSSL_X509_check_ip_asc(WOLFSSL_X509 *x, const char *ipasc,
}

#ifdef WOLFSSL_SMALL_STACK
XFREE(dCert, x->heap, DYNAMIC_TYPE_DCERT);
if (dCert != NULL) {
XFREE(dCert, x->heap, DYNAMIC_TYPE_DCERT);
}
#endif

return ret;
Expand Down

0 comments on commit 0c77eef

Please sign in to comment.