Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.c @ 9206:43fc897bbab8
SSL: fixed $ssl_curves allocation error handling.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 30 Jan 2024 19:18:31 +0400 |
parents | 875cd36b8617 |
children | f5423ee155fe |
comparison
equal
deleted
inserted
replaced
9205:4a3aa287704f | 9206:43fc897bbab8 |
---|---|
5185 s->len = 0; | 5185 s->len = 0; |
5186 return NGX_OK; | 5186 return NGX_OK; |
5187 } | 5187 } |
5188 | 5188 |
5189 curves = ngx_palloc(pool, n * sizeof(int)); | 5189 curves = ngx_palloc(pool, n * sizeof(int)); |
5190 if (curves == NULL) { | |
5191 return NGX_ERROR; | |
5192 } | |
5190 | 5193 |
5191 n = SSL_get1_curves(c->ssl->connection, curves); | 5194 n = SSL_get1_curves(c->ssl->connection, curves); |
5192 len = 0; | 5195 len = 0; |
5193 | 5196 |
5194 for (i = 0; i < n; i++) { | 5197 for (i = 0; i < n; i++) { |