diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-12-24 16:18:35 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-24 16:18:35 +0000 |
| commit | 9b753d2eea3ab862fc455059f610130fdd8333e5 (patch) | |
| tree | e33b85814c7aaa77f64afa713620a93a5d45c69b /src/http/modules/ngx_http_fastcgi_module.c | |
| parent | 503c07512237a475849c51f466b0a065940cb76a (diff) | |
| download | nginx-9b753d2eea3ab862fc455059f610130fdd8333e5.tar.gz nginx-9b753d2eea3ab862fc455059f610130fdd8333e5.tar.bz2 | |
fix segfault, introduced in r2423
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 6e4d956d8..201ac2a21 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -512,7 +512,7 @@ ngx_http_fastcgi_eval(ngx_http_request_t *r, ngx_http_fastcgi_loc_conf_t *flcf) return NGX_ERROR; } - if (u.addrs[0].sockaddr) { + if (u.addrs && u.addrs[0].sockaddr) { r->upstream->resolved->sockaddr = u.addrs[0].sockaddr; r->upstream->resolved->socklen = u.addrs[0].socklen; r->upstream->resolved->naddrs = 1; |
