diff 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
line wrap: on
line diff
--- 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
         }
 
         part = ngx_array_push(f->split_parts);
+        if (part == NULL) {
+            return NGX_ERROR;
+        }
 
         part->start = part_start;
         part->end = part_end;