comparison src/event/ngx_event_openssl.c @ 1795:3a0132e2be2c

fix segfault introduced in r1780
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Dec 2007 18:35:52 +0000
parents 06014cfdb5b1
children a1f00736852e
comparison
equal deleted inserted replaced
1794:6ea0d5e8cc54 1795:3a0132e2be2c
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