diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2024-01-30 19:18:31 +0400 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2024-01-30 19:18:31 +0400 |
commit | 2a10e48620d430bc2d44f36249c33fb1813aa507 (patch) | |
tree | f97c11ce44f2367037451c8951834c2a7f8b05de /src | |
parent | 771cf15704b68e39756f33a23762be5da0e816ac (diff) | |
download | nginx-2a10e48620d430bc2d44f36249c33fb1813aa507.tar.gz nginx-2a10e48620d430bc2d44f36249c33fb1813aa507.zip |
SSL: fixed $ssl_curves allocation error handling.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/ngx_event_openssl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index 104dd03f2..89f277fe5 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -5187,6 +5187,9 @@ ngx_ssl_get_curves(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s) } curves = ngx_palloc(pool, n * sizeof(int)); + if (curves == NULL) { + return NGX_ERROR; + } n = SSL_get1_curves(c->ssl->connection, curves); len = 0; |