mirror of
https://github.com/nginx/nginx.git
synced 2024-11-23 20:19:02 +08:00
SSL: fixed $ssl_curves allocation error handling.
This commit is contained in:
parent
771cf15704
commit
2a10e48620
@ -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 New Issue
Block a user