Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 4852:9be0b6b749ae stable-1.2
Merge of r4785, r4795, r4811, r4812, r4816, r4822: coverity.
*) Resolver: fixed possible memory leak in ngx_resolver_create().
*) Explicitly ignore returned value from unlink() in ngx_open_tempfile().
*) Explicitly ignore returned value from close() in ngx_event_core_init_conf().
*) Added three missing checks for NULL after ngx_array_push() calls.
*) Crypt: fixed handling of corrupted SSHA entries in password file.
*) Mark logically dead code with corresponding comment.
Found by / prodded by Coverity.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 24 Sep 2012 18:54:28 +0000 |
parents | b9ea486e543f |
children | 4251e72b8bb4 |
comparison
equal
deleted
inserted
replaced
4851:6173853dd782 | 4852:9be0b6b749ae |
---|---|
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) { |