diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-10-20 19:07:50 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-20 19:07:50 +0000 |
commit | 44d8bc2ff19385cf85c09bffdc21fe7a9eb19976 (patch) | |
tree | aec7708481e10dd00beeb87a90eeaf8b24059e90 /src/http/ngx_http_variables.c | |
parent | 3d0a7168a943a5c02928b832b5e27f5a2d928699 (diff) | |
download | nginx-44d8bc2ff19385cf85c09bffdc21fe7a9eb19976.tar.gz nginx-44d8bc2ff19385cf85c09bffdc21fe7a9eb19976.zip |
fix segfault if $server_addr failed
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 120145829..48b46f07d 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -367,7 +367,7 @@ ngx_http_get_indexed_variable(ngx_http_request_t *r, ngx_uint_t index) r->variables[index].valid = 0; r->variables[index].not_found = 1; - return NULL; + return &r->variables[index]; } |