comparison src/http/modules/ngx_http_fastcgi_module.c @ 4811:21d1e3bcb356

Added three missing checks for NULL after ngx_array_push() calls. Found by Coverity.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 08 Aug 2012 12:03:46 +0000
parents b194fb640d3e
children 4251e72b8bb4
comparison
equal deleted inserted replaced
4810:e1d11fb9a71f 4811:21d1e3bcb356
1624 return NGX_ERROR; 1624 return NGX_ERROR;
1625 } 1625 }
1626 } 1626 }
1627 1627
1628 part = ngx_array_push(f->split_parts); 1628 part = ngx_array_push(f->split_parts);
1629 if (part == NULL) {
1630 return NGX_ERROR;
1631 }
1629 1632
1630 part->start = part_start; 1633 part->start = part_start;
1631 part->end = part_end; 1634 part->end = part_end;
1632 1635
1633 if (u->buffer.pos < u->buffer.last) { 1636 if (u->buffer.pos < u->buffer.last) {