comparison src/http/modules/ngx_http_fastcgi_module.c @ 4136:7898857ff34b

Fixed loss of chain links in fastcgi module.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 20 Sep 2011 09:56:05 +0000
parents c7fae0daeb57
children e444e8f6538b
comparison
equal deleted inserted replaced
4135:d8e24515176e 4136:7898857ff34b
1742 if (f->pos == f->last) { 1742 if (f->pos == f->last) {
1743 break; 1743 break;
1744 } 1744 }
1745 1745
1746 if (p->free) { 1746 if (p->free) {
1747 b = p->free->buf; 1747 cl = p->free;
1748 p->free = p->free->next; 1748 b = cl->buf;
1749 p->free = cl->next;
1750 ngx_free_chain(p->pool, cl);
1749 1751
1750 } else { 1752 } else {
1751 b = ngx_alloc_buf(p->pool); 1753 b = ngx_alloc_buf(p->pool);
1752 if (b == NULL) { 1754 if (b == NULL) {
1753 return NGX_ERROR; 1755 return NGX_ERROR;