diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-17 16:07:58 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-17 16:07:58 +0000 |
commit | cf6c582b9a617ccec1de1e09015143757c79c00d (patch) | |
tree | 9eafd133db60fd5c089289f0e2b5560088ca7c8a /src/http/ngx_http_upstream.c | |
parent | 52b815e4524d588aa55e8bb46845b8412eaeb0a0 (diff) | |
download | nginx-cf6c582b9a617ccec1de1e09015143757c79c00d.tar.gz nginx-cf6c582b9a617ccec1de1e09015143757c79c00d.zip |
fix segfault
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index fac45fe35..9a96a1e3c 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2488,7 +2488,9 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r, 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(); |