summaryrefslogtreecommitdiffstats
path: root/ssl/quic/quic_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssl/quic/quic_impl.c')
-rw-r--r--ssl/quic/quic_impl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c
index e8f69c712c..9249c64cff 100644
--- a/ssl/quic/quic_impl.c
+++ b/ssl/quic/quic_impl.c
@@ -327,8 +327,10 @@ static int expect_quic_as(const SSL *s, QCTX *ctx, uint32_t flags)
}
if ((flags & QCTX_C) == 0
- && (qc->default_xso == NULL || (flags & QCTX_S) == 0))
- return wrong_type(s, flags);
+ && (qc->default_xso == NULL || (flags & QCTX_S) == 0)) {
+ wrong_type(s, flags);
+ goto err;
+ }
ctx->xso = qc->default_xso;
break;