From: Hugo Landau Date: Mon, 8 May 2023 18:54:47 +0000 (+0100) Subject: QUIC: Fix CRYPTO_GET_REF X-Git-Tag: openssl-3.2.0-alpha1~818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da3e02c5eaac2bec9c14165d62874b1232213fe;p=thirdparty%2Fopenssl.git QUIC: Fix CRYPTO_GET_REF Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20765) --- diff --git a/include/internal/refcount.h b/include/internal/refcount.h index fbfe25bd0b3..15f33d8c02d 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