mirror of
https://github.com/nginx/nginx.git
synced 2026-06-09 08:57:35 -04:00
SSL: fixed $ssl_curves allocation error handling.
This commit is contained in:
parent
771cf15704
commit
2a10e48620
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue