diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 20:30:20 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 23:18:54 +0100 |
commit | 65cbf983ca4f69b8954f949c2edaaa48824481b3 (patch) | |
tree | 00e276634405fbab27f99c8879fcf7f2a77cb111 /crypto/x509/x509_lu.c | |
parent | a7e974c7be90e2c9673e2ce6215a70f734eb8ad4 (diff) |
Add X509_CRL_up_ref function
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509/x509_lu.c')
-rw-r--r-- | crypto/x509/x509_lu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index ae46df8449..d8ba14c39a 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -409,7 +409,7 @@ void X509_OBJECT_up_ref_count(X509_OBJECT *a) CRYPTO_add(&a->data.x509->references, 1, CRYPTO_LOCK_X509); break; case X509_LU_CRL: - CRYPTO_add(&a->data.crl->references, 1, CRYPTO_LOCK_X509_CRL); + X509_CRL_up_ref(a->data.crl); break; } } @@ -565,7 +565,7 @@ STACK_OF(X509_CRL) *X509_STORE_get1_crls(X509_STORE_CTX *ctx, X509_NAME *nm) for (i = 0; i < cnt; i++, idx++) { obj = sk_X509_OBJECT_value(ctx->ctx->objs, idx); x = obj->data.crl; - CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509_CRL); + X509_CRL_up_ref(x); if (!sk_X509_CRL_push(sk, x)) { CRYPTO_w_unlock(CRYPTO_LOCK_X509_STORE); X509_CRL_free(x); |