Fix some X509_STORE macros
[openssl.git] / crypto / x509 / x509cset.c
index bc14374d0614e41c2489abdc8bbebf6eca5a4a68..ab5f192a15d77e12bb3bd6f0ac77d6333b6ec78f 100644 (file)
@@ -134,7 +134,8 @@ int X509_CRL_sort(X509_CRL *c)
 
 void X509_CRL_up_ref(X509_CRL *crl)
 {
-    CRYPTO_add(&crl->references, 1, CRYPTO_LOCK_X509_CRL);
+    int i;
+    CRYPTO_atomic_add(&crl->references, 1, &i, crl->lock);
 }
 
 long X509_CRL_get_version(X509_CRL *crl)