comparison src/http/ngx_http_variables.c @ 797:36f7b549f481

fix segfault if $server_addr failed
author Igor Sysoev <igor@sysoev.ru>
date Fri, 20 Oct 2006 19:07:50 +0000
parents ff16489f1eac
children 97e89a42711f
comparison
equal deleted inserted replaced
796:3db9dd3d9d8c 797:36f7b549f481
365 } 365 }
366 366
367 r->variables[index].valid = 0; 367 r->variables[index].valid = 0;
368 r->variables[index].not_found = 1; 368 r->variables[index].not_found = 1;
369 369
370 return NULL; 370 return &r->variables[index];
371 } 371 }
372 372
373 373
374 ngx_http_variable_value_t * 374 ngx_http_variable_value_t *
375 ngx_http_get_flushed_variable(ngx_http_request_t *r, ngx_uint_t index) 375 ngx_http_get_flushed_variable(ngx_http_request_t *r, ngx_uint_t index)