summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509cset.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/x509/x509cset.c')
-rw-r--r--crypto/x509/x509cset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509cset.c b/crypto/x509/x509cset.c
index 205785961b..3c9c32296e 100644
--- a/crypto/x509/x509cset.c
+++ b/crypto/x509/x509cset.c
@@ -67,7 +67,7 @@ int X509_CRL_up_ref(X509_CRL *crl)
{
int i;
- if (CRYPTO_atomic_add(&crl->references, 1, &i, crl->lock) <= 0)
+ if (CRYPTO_UP_REF(&crl->references, &i, crl->lock) <= 0)
return 0;
REF_PRINT_COUNT("X509_CRL", crl);