Welcome! Log In Create A New Profile

Advanced

[nginx] SSL: fixed $ssl_curves allocation error handling.

Sergey Kandaurov
January 30, 2024 10:20AM
details: https://hg.nginx.org/nginx/rev/43fc897bbab8
branches:
changeset: 9206:43fc897bbab8
user: Sergey Kandaurov <pluknet@nginx.com>
date: Tue Jan 30 19:18:31 2024 +0400
description:
SSL: fixed $ssl_curves allocation error handling.

diffstat:

src/event/ngx_event_openssl.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 4a3aa287704f -r 43fc897bbab8 src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c Tue Jan 30 19:14:16 2024 +0400
+++ b/src/event/ngx_event_openssl.c Tue Jan 30 19:18:31 2024 +0400
@@ -5187,6 +5187,9 @@ ngx_ssl_get_curves(ngx_connection_t *c,
}

curves = ngx_palloc(pool, n * sizeof(int));
+ if (curves == NULL) {
+ return NGX_ERROR;
+ }

n = SSL_get1_curves(c->ssl->connection, curves);
len = 0;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] SSL: fixed $ssl_curves allocation error handling.

Sergey Kandaurov 264 January 30, 2024 10:20AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 328
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready