nginx-0.6.23
Igor Sysoev
is at rambler-co.ru
Thu Dec 27 21:34:36 MSK 2007
On Thu, Dec 27, 2007 at 11:54:45PM +0600, Denis F. Latypoff wrote:
> (gdb) p c
> $5 = (ngx_connection_t *) 0xb7e199e8
> (gdb) p c->pool->large
> $6 = (ngx_pool_large_t *) 0x837c97c
> (gdb) p c->pool->large->alloc
> $7 = (void *) 0x0
> (gdb) p c->ssl->buf->start
> $8 = (u_char *) 0x0
>
> и как раз условие выполняется:
Патч.
--
Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
Index: src/event/ngx_event_openssl.c
===================================================================
--- src/event/ngx_event_openssl.c (revision 1114)
+++ src/event/ngx_event_openssl.c (working copy)
@@ -996,8 +996,10 @@
void
ngx_ssl_free_buffer(ngx_connection_t *c)
{
- if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) {
- c->ssl->buf->start = NULL;
+ if (c->ssl->buf && c->ssl->buf->start) {
+ if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) {
+ c->ssl->buf->start = NULL;
+ }
}
}
More information about the nginx-ru
mailing list