summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2024-11-22 11:38:06 +0400
committerpluknet <pluknet@nginx.com>2025-02-05 20:40:47 +0400
commit977824010f0bb8e2b54963fd4532a6167e6a0ada (patch)
tree28cf76f6a7a87cc334b529499c60157c467d32d3
parent5c8a92f1f0e482028504e5340f0ba455423df336 (diff)
downloadnginx-977824010f0bb8e2b54963fd4532a6167e6a0ada.tar.gz
nginx-977824010f0bb8e2b54963fd4532a6167e6a0ada.tar.bz2
QUIC: prevented BIO leak in case of error.
-rw-r--r--src/event/quic/ngx_event_quic_openssl_compat.c1
1 files changed, 1 insertions, 0 deletions
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;
}