diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-09-24 18:54:28 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-09-24 18:54:28 +0000 |
| commit | 191e31938e81f2a59a4ba4dc6b3f4f28bc232187 (patch) | |
| tree | 4a66b21305d26ed0522557cf19be9ffca6d7a758 /src/http/modules/ngx_http_fastcgi_module.c | |
| parent | f8c0690d379ad745fe3a7e7f53548964278ce094 (diff) | |
| download | nginx-191e31938e81f2a59a4ba4dc6b3f4f28bc232187.tar.gz nginx-191e31938e81f2a59a4ba4dc6b3f4f28bc232187.tar.bz2 | |
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.
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 55c3aef29..e8ff24cac 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -1626,6 +1626,9 @@ ngx_http_fastcgi_process_header(ngx_http_request_t *r) } part = ngx_array_push(f->split_parts); + if (part == NULL) { + return NGX_ERROR; + } part->start = part_start; part->end = part_end; |
