diff options
Diffstat (limited to 'crypto/x509/x509_set.c')
-rw-r--r-- | crypto/x509/x509_set.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509/x509_set.c b/crypto/x509/x509_set.c index c0ea41883d..e46174a463 100644 --- a/crypto/x509/x509_set.c +++ b/crypto/x509/x509_set.c @@ -96,7 +96,7 @@ int X509_up_ref(X509 *x) { int i; - if (CRYPTO_atomic_add(&x->references, 1, &i, x->lock) <= 0) + if (CRYPTO_UP_REF(&x->references, &i, x->lock) <= 0) return 0; REF_PRINT_COUNT("X509", x); |