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

Reply via email to