Mercurial > hg > nginx
comparison src/http/modules/ngx_http_limit_req_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 | 778ef9c3fd2d |
children | 949ea3d3cd1a |
comparison
equal
deleted
inserted
replaced
4810:e1d11fb9a71f | 4811:21d1e3bcb356 |
---|---|
935 return "is duplicate"; | 935 return "is duplicate"; |
936 } | 936 } |
937 } | 937 } |
938 | 938 |
939 limit = ngx_array_push(&lrcf->limits); | 939 limit = ngx_array_push(&lrcf->limits); |
940 if (limit == NULL) { | |
941 return NGX_CONF_ERROR; | |
942 } | |
940 | 943 |
941 limit->shm_zone = shm_zone; | 944 limit->shm_zone = shm_zone; |
942 limit->burst = burst * 1000; | 945 limit->burst = burst * 1000; |
943 limit->nodelay = nodelay; | 946 limit->nodelay = nodelay; |
944 | 947 |