comparison src/event/ngx_event_openssl.c @ 360:2b41fbc2e39e NGINX_0_6_24

nginx 0.6.24 *) Bugfix: a segmentation fault might occur in worker process if HTTPS was used; bug appeared in 0.6.23.
author Igor Sysoev <http://sysoev.ru>
date Thu, 27 Dec 2007 00:00:00 +0300
parents 9121a0a91f47
children a39aab45a53f
comparison
equal deleted inserted replaced
359:580da4bad456 360:2b41fbc2e39e
994 994
995 995
996 void 996 void
997 ngx_ssl_free_buffer(ngx_connection_t *c) 997 ngx_ssl_free_buffer(ngx_connection_t *c)
998 { 998 {
999 if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) { 999 if (c->ssl->buf && c->ssl->buf->start) {
1000 c->ssl->buf->start = NULL; 1000 if (ngx_pfree(c->pool, c->ssl->buf->start) == NGX_OK) {
1001 c->ssl->buf->start = NULL;
1002 }
1001 } 1003 }
1002 } 1004 }
1003 1005
1004 1006
1005 ngx_int_t 1007 ngx_int_t