]> git.kaiwu.me - nginx.git/commitdiff
r2414 merge:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 26 Jan 2009 15:17:50 +0000 (15:17 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 26 Jan 2009 15:17:50 +0000 (15:17 +0000)
fix segfault

src/http/ngx_http_upstream.c

index 3f77c03c4ea0fe8b7e296cb3567847cea6d8a6bf..bb235db8a86b6ed16b8f12a7c480e48fd1649496 100644 (file)
@@ -2345,7 +2345,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();