From: Pauli Date: Wed, 21 Jun 2023 23:40:03 +0000 (+1000) Subject: quic: update to structure based atomics X-Git-Tag: openssl-3.2.0-alpha1~547 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4eecc6aa5dee91b7ac1b8a40ab07bc6bc5930a5d;p=thirdparty%2Fopenssl.git quic: update to structure based atomics Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/21260) --- 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");