| commit | cf6c582b9a617ccec1de1e09015143757c79c00d | [log] [tgz] |
|---|---|---|
| author | Igor Sysoev <igor@sysoev.ru> | Wed Dec 17 16:07:58 2008 +0000 |
| committer | Igor Sysoev <igor@sysoev.ru> | Wed Dec 17 16:07:58 2008 +0000 |
| tree | 9eafd133db60fd5c089289f0e2b5560088ca7c8a | |
| parent | 52b815e4524d588aa55e8bb46845b8412eaeb0a0 [diff] [blame] |
fix segfault
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index fac45fe..9a96a1e 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c
@@ -2488,7 +2488,9 @@ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "finalize http upstream request: %i", rc); - *u->cleanup = NULL; + if (u->cleanup) { + *u->cleanup = NULL; + } if (u->state && u->state->response_sec) { tp = ngx_timeofday();