diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-05-08 19:54:47 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-05-12 14:47:15 +0100 |
commit | 5da3e02c5eaac2bec9c14165d62874b1232213fe (patch) | |
tree | 3aa9159d573ec276a6c471a01eb8547672c9f5d7 | |
parent | 83df44ae53c3c3bb1e79785af38ab52bb4f865cb (diff) |
QUIC: Fix CRYPTO_GET_REF
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20765)
-rw-r--r-- | include/internal/refcount.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/refcount.h b/include/internal/refcount.h index fbfe25bd0b..15f33d8c02 100644 --- a/include/internal/refcount.h +++ b/include/internal/refcount.h @@ -197,6 +197,7 @@ typedef int CRYPTO_REF_COUNT; # define CRYPTO_UP_REF(val, ret, lock) CRYPTO_atomic_add(val, 1, ret, lock) # define CRYPTO_DOWN_REF(val, ret, lock) CRYPTO_atomic_add(val, -1, ret, lock) +# define CRYPTO_GET_REF(val, ret, lock) CRYPTO_atomic_load(val, ret, lock) # endif |