]> git.ipfire.org Git - thirdparty/openssl.git/commit
quic_impl.c: pass correct SSL to ossl_ssl_connection_new_int in ossl_quic_new_from_li...
authorAndrew Dinh <andrewd@openssl.org>
Wed, 20 May 2026 16:09:48 +0000 (23:09 +0700)
committerEugene Syromiatnikov <esyr@openssl.org>
Tue, 26 May 2026 14:12:17 +0000 (16:12 +0200)
commit76a95bae2e9398db47ccbbbb4cd420e4640e1cb4
tree73f3cce3ef8efbb67355f812c84e4f2ae2506312
parentd60fad179ebe896a6b1c65e1c857556e145994c3
quic_impl.c: pass correct SSL to ossl_ssl_connection_new_int in ossl_quic_new_from_listener

In ossl_quic_new_from_listener(), the call to ossl_ssl_connection_new_int()
was passing NULL for the user_ssl parameter.  NULL causes s->user_ssl
to be set to the inner TLS ssl object, so the inner SSL object points
to itself rather than to the outer QUIC connection object.

The fix passes &qc->obj.ssl instead of NULL.  Afterwards,
ossl_quic_obj_init() will initialize &qc->obj.ssl in place.

Resolves: https://github.com/openssl/project/issues/989
Fixes: 0b15147a37c5 "Implement SSL_new_from_listener()"
Reviewed-by: Bob Beck <beck@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Tue May 26 14:12:45 2026
(Merged from https://github.com/openssl/openssl/pull/31257)
ssl/quic/quic_impl.c