[nginx] QUIC: prevented BIO leak in case of error.

noreply at nginx.com noreply at nginx.com
Wed Feb 5 16:41:02 UTC 2025


details:   https://github.com/nginx/nginx/commit/977824010f0bb8e2b54963fd4532a6167e6a0ada
branches:  stable-1.26
commit:    977824010f0bb8e2b54963fd4532a6167e6a0ada
user:      Roman Arutyunyan <arut at 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;
     }
 


More information about the nginx-devel mailing list