diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_cpols.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_cpols.c b/src/lib/libcrypto/x509v3/v3_cpols.c index ad0506d75c..95596055ab 100644 --- a/src/lib/libcrypto/x509v3/v3_cpols.c +++ b/src/lib/libcrypto/x509v3/v3_cpols.c | |||
| @@ -181,11 +181,7 @@ static STACK_OF(POLICYINFO) *r2i_certpol(X509V3_EXT_METHOD *method, | |||
| 181 | pol = POLICYINFO_new(); | 181 | pol = POLICYINFO_new(); |
| 182 | pol->policyid = pobj; | 182 | pol->policyid = pobj; |
| 183 | } | 183 | } |
| 184 | if (!sk_POLICYINFO_push(pols, pol)){ | 184 | sk_POLICYINFO_push(pols, pol); |
| 185 | POLICYINFO_free(pol); | ||
| 186 | X509V3err(X509V3_F_R2I_CERTPOL, ERR_R_MALLOC_FAILURE); | ||
| 187 | goto err; | ||
| 188 | } | ||
| 189 | } | 185 | } |
| 190 | sk_CONF_VALUE_pop_free(vals, X509V3_conf_free); | 186 | sk_CONF_VALUE_pop_free(vals, X509V3_conf_free); |
| 191 | return pols; | 187 | return pols; |
| @@ -451,4 +447,3 @@ void X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent) | |||
| 451 | BIO_printf(out, "%*sNo Qualifiers\n", indent + 2, ""); | 447 | BIO_printf(out, "%*sNo Qualifiers\n", indent + 2, ""); |
| 452 | } | 448 | } |
| 453 | 449 | ||
| 454 | IMPLEMENT_STACK_OF(X509_POLICY_NODE) | ||
