SSL: fixed $ssl_curves allocation error handling.

This commit is contained in:
Sergey Kandaurov 2024-01-30 19:18:31 +04:00
parent 771cf15704
commit 2a10e48620

View File

@ -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;