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,9 +996,11 @@ ngx_ssl_read_handler(ngx_event_t *rev)
|
||||
void
|
||||
ngx_ssl_free_buffer(ngx_connection_t *c)
|
||||
{
|
||||
if (c->ssl->buf && c->ssl->buf->start) {
|
||||
if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) {
|
||||
c->ssl->buf->start = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user