forked from wolfSSL/wolfssl
fix for free with test case
This commit is contained in:
@@ -27897,6 +27897,8 @@ static void test_wolfSSL_certs(void)
|
|||||||
asn1_str = (ASN1_STRING*)X509_get_ext_d2i(x509ext, NID_key_usage, &crit,
|
asn1_str = (ASN1_STRING*)X509_get_ext_d2i(x509ext, NID_key_usage, &crit,
|
||||||
NULL);
|
NULL);
|
||||||
AssertIntEQ(X509_EXTENSION_set_data(ext, asn1_str), SSL_SUCCESS);
|
AssertIntEQ(X509_EXTENSION_set_data(ext, asn1_str), SSL_SUCCESS);
|
||||||
|
ASN1_STRING_free(asn1_str); /* X509_EXTENSION_set_data has made a copy
|
||||||
|
* and X509_get_ext_d2i has created new */
|
||||||
X509_EXTENSION_free(ext);
|
X509_EXTENSION_free(ext);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user