mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
fix segfault introduced in r1780
This commit is contained in:
parent
938d4993db
commit
f25abef8dc
@ -996,8 +996,10 @@ ngx_ssl_read_handler(ngx_event_t *rev)
|
|||||||
void
|
void
|
||||||
ngx_ssl_free_buffer(ngx_connection_t *c)
|
ngx_ssl_free_buffer(ngx_connection_t *c)
|
||||||
{
|
{
|
||||||
if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) {
|
if (c->ssl->buf && c->ssl->buf->start) {
|
||||||
c->ssl->buf->start = NULL;
|
if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) {
|
||||||
|
c->ssl->buf->start = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user