summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_impl.c
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-07-06 20:14:10 +0100
committerPauli <pauli@openssl.org>2023-07-17 08:18:05 +1000
commit1d547f8fc4fa2bc16fca935703ec90cfdf3fefd4 (patch)
treea6b78bd45fa776b6131bef7e0151594b6702f9b8 /ssl/quic/quic_impl.c
parent96b7df60b3e54641c6046fea31c7a5cb535c2eeb (diff)
Minor updates 2
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21135)
Diffstat (limited to 'ssl/quic/quic_impl.c')
-rw-r--r--ssl/quic/quic_impl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index 3051a1318c..d9bdf74efe 100644
--- a/ssl/quic/quic_impl.c
+++ b/ssl/quic/quic_impl.c
@@ -2753,11 +2753,14 @@ int ossl_quic_stream_reset(SSL *ssl,
qs = ctx.xso->stream;
error_code = (args != NULL ? args->quic_error_code : 0);
- if (!quic_validate_for_write(ctx.xso, &err))
- return QUIC_RAISE_NON_NORMAL_ERROR(&ctx, err, NULL);
+ if (!quic_validate_for_write(ctx.xso, &err)) {
+ ok = QUIC_RAISE_NON_NORMAL_ERROR(&ctx, err, NULL);
+ goto err;
+ }
ok = ossl_quic_stream_map_reset_stream_send_part(qsm, qs, error_code);
+err:
quic_unlock(ctx.qc);
return ok;
}