diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index b732d2f3eb..0692e57a0b 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -3098,11 +3098,10 @@ SSL *ossl_quic_get0_listener(SSL *s) { QCTX ctx; - if (!expect_quic(s, &ctx)) + if (!expect_quic_any(s, &ctx)) return NULL; - /* TODO(QUIC SERVER): Implement SSL_get0_listener */ - return NULL; + return ctx.ql != NULL ? &ctx.ql->obj.ssl : NULL; } /*