diff options
author | Roman Arutyunyan <arut@nginx.com> | 2024-11-22 11:38:06 +0400 |
---|---|---|
committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2024-11-25 16:22:40 +0400 |
commit | 0864cca4d74e215acdcab20a68e025c6e3ee9efa (patch) | |
tree | 444b9f3071b3ad4be2dfe7858283c1f027c8d88d | |
parent | 476d6526b2e8297025c608425f4cad07b4f65990 (diff) | |
download | nginx-0864cca4d74e215acdcab20a68e025c6e3ee9efa.tar.gz nginx-0864cca4d74e215acdcab20a68e025c6e3ee9efa.zip |
QUIC: prevented BIO leak in case of error.
-rw-r--r-- | src/event/quic/ngx_event_quic_openssl_compat.c | 1 |
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; } |