details: https://github.com/nginx/nginx/commit/977824010f0bb8e2b54963fd4532a6167e6a0ada branches: stable-1.26 commit: 977824010f0bb8e2b54963fd4532a6167e6a0ada user: Roman Arutyunyan <a...@nginx.com> date: Fri, 22 Nov 2024 11:38:06 +0400 description: QUIC: prevented BIO leak in case of error.
--- src/event/quic/ngx_event_quic_openssl_compat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/event/quic/ngx_event_quic_openssl_compat.c b/src/event/quic/ngx_event_quic_openssl_compat.c index c7412e82b..6052bc683 100644 --- a/src/event/quic/ngx_event_quic_openssl_compat.c +++ b/src/event/quic/ngx_event_quic_openssl_compat.c @@ -391,6 +391,7 @@ SSL_set_quic_method(SSL *ssl, const SSL_QUIC_METHOD *quic_method) wbio = BIO_new(BIO_s_null()); if (wbio == NULL) { + BIO_free(rbio); return 0; } _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx-devel