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

noreply at nginx.com noreply at nginx.com
Mon Nov 25 12:23:02 UTC 2024


details:   https://github.com/nginx/nginx/commit/0864cca4d74e215acdcab20a68e025c6e3ee9efa
branches:  master
commit:    0864cca4d74e215acdcab20a68e025c6e3ee9efa
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