ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx-0.6.23



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
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;
+        }
     }
 }
 


 




Copyright © Lexa Software, 1996-2009.