From 4eecc6aa5dee91b7ac1b8a40ab07bc6bc5930a5d Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 22 Jun 2023 09:40:03 +1000 Subject: [PATCH] quic: update to structure based atomics Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21260) --- ssl/quic/quic_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index b1e9be774b2..3454b35ef73 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -581,7 +581,7 @@ static void qc_set_default_xso_keep_ref(QUIC_CONNECTION *qc, QUIC_XSO *xso, */ assert(*old_xso == NULL); - CRYPTO_DOWN_REF(&qc->ssl.references, &refs, &qc->ssl.lock); + CRYPTO_DOWN_REF(&qc->ssl.references, &refs); assert(refs > 0); } } @@ -2311,7 +2311,7 @@ int ossl_quic_attach_stream(SSL *conn, SSL *stream) * It is a caller error for the XSO being attached as a default XSO to have * more than one ref. */ - if (!CRYPTO_GET_REF(&xso->ssl.references, &nref, &xso->ssl.lock)) { + if (!CRYPTO_GET_REF(&xso->ssl.references, &nref)) { quic_unlock(ctx.qc); return QUIC_RAISE_NON_NORMAL_ERROR(&ctx, ERR_R_INTERNAL_ERROR, "ref"); -- 2.47.2