]> granicus.if.org Git - apache/commitdiff
protect logic in case backend == NULL
authorJim Jagielski <jim@apache.org>
Fri, 25 Mar 2016 12:14:30 +0000 (12:14 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 25 Mar 2016 12:14:30 +0000 (12:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1736563 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_hcheck.c

index bd1b9401749d57ca5c266d60930c082aa99e41c4..68b7f575f477008b6028cce541c67037e4325a8a 100644 (file)
@@ -503,12 +503,12 @@ static apr_status_t backend_cleanup(const char *proxy_function, proxy_conn_rec *
     if (backend) {
         backend->close = 1;
         ap_proxy_release_connection(proxy_function, backend, s);
+        ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(03251)
+                         "Health check %s Status (%d) for %s.",
+                         ap_proxy_show_hcmethod(backend->worker->s->method),
+                         status,
+                         backend->worker->s->name);
     }
-    ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, APLOGNO(03251)
-                     "Health check %s Status (%d) for %s.",
-                     ap_proxy_show_hcmethod(backend->worker->s->method),
-                     status,
-                     backend->worker->s->name);
     if (status != OK) {
         return APR_EGENERAL;
     }