summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2023-06-22 09:40:03 +1000
committerPauli <pauli@openssl.org>2023-07-01 21:18:25 +1000
commit4eecc6aa5dee91b7ac1b8a40ab07bc6bc5930a5d (patch)
tree8e642c0deb67c424e4796763cdb17400fe5ce87f
parent43a07d6dd44cc9594a6cfecc464b69a7c4142d5f (diff)
quic: update to structure based atomics
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21260)
-rw-r--r--ssl/quic/quic_impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index b1e9be774b..3454b35ef7 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");