forked from wolfSSL/wolfssl
Moved the x509 XFREE to outside the FreeX509 function. Internally FreeX509 is only used in two places. One is for the ssl->peerCert, which is not dynamic anyways. The second is in the ExternalFreeX509 where it calls FreeX509 if its dynamic and will XFREE there.
This commit is contained in:
@@ -1695,8 +1695,6 @@ void FreeX509(WOLFSSL_X509* x509)
|
||||
#endif /* OPENSSL_EXTRA */
|
||||
if (x509->altNames)
|
||||
FreeAltNames(x509->altNames, NULL);
|
||||
if (x509->dynamicMemory)
|
||||
XFREE(x509, NULL, DYNAMIC_TYPE_X509);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user