aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_fastcgi_module.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2012-08-08 12:03:46 +0000
committerValentin Bartenev <vbart@nginx.com>2012-08-08 12:03:46 +0000
commit86dd5bde4590e60289cf2ae94afe2f9ab5d65f3c (patch)
treeecdea6f9f6c1b5bd3267726344d76159956b23ce /src/http/modules/ngx_http_fastcgi_module.c
parent2af80d5fab3e3962baf38d65eebcfe79312ae32e (diff)
downloadnginx-86dd5bde4590e60289cf2ae94afe2f9ab5d65f3c.tar.gz
nginx-86dd5bde4590e60289cf2ae94afe2f9ab5d65f3c.zip
Added three missing checks for NULL after ngx_array_push() calls.
Found by Coverity.
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r--src/http/modules/ngx_http_fastcgi_module.c3
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;