mirror of
https://github.com/openssl/openssl.git
synced 2025-01-12 13:36:28 +08:00
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)
This commit is contained in:
parent
23406e304f
commit
4669a3d79b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user