summaryrefslogtreecommitdiffstats
path: root/ssl/quic
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-07-27 16:17:33 +0100
committerHugo Landau <hlandau@openssl.org>2023-08-10 18:19:51 +0100
commit4669a3d79b59d037ccb5b4a30bc522ebe55d3eec (patch)
tree63c4acb3e0205c69025520f1693fd70988c25945 /ssl/quic
parent23406e304f4d2406e6aa51c44b8f8dc2612e63fc (diff)
QUIC APL: Add missing unlock call (coverity)
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21565)
Diffstat (limited to 'ssl/quic')
-rw-r--r--ssl/quic/quic_impl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index e285c66cb8..cf6233fc5b 100644
--- a/ssl/quic/quic_impl.c
+++ b/ssl/quic/quic_impl.c
@@ -2565,9 +2565,11 @@ int ossl_quic_set_default_stream_mode(SSL *s, uint32_t mode)
quic_lock(ctx.qc);
- if (ctx.qc->default_xso_created)
+ if (ctx.qc->default_xso_created) {
+ quic_unlock(ctx.qc);
return QUIC_RAISE_NON_NORMAL_ERROR(&ctx, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED,
"too late to change default stream mode");
+ }
switch (mode) {
case SSL_DEFAULT_STREAM_MODE_NONE: