]> granicus.if.org Git - apache/commitdiff
Eliminate a gp fault on mpm_winnt since we don't have a scoreboard table.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 27 Jan 2001 23:29:39 +0000 (23:29 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 27 Jan 2001 23:29:39 +0000 (23:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87876 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_status.c

index dee343601e5ac1f05215fabf252dab765128b033..edf45bd74e231e25a71622a97093ae773e7e47a2 100644 (file)
@@ -112,13 +112,17 @@ static int status_handler(request_rec *r)
       ap_get_server_built(), "<br>\n<hr>\n", NULL);
     ap_rvputs(r, "Current Time: ",
       ap_ht_time(r->pool, apr_now(), DEFAULT_TIME_FORMAT, 0), "<br>\n", NULL);
-    ap_rprintf(r, "\n%d connections currently being processed\n",
-               server_status->nelts);
-
-    status_rows = (ap_status_table_row_t *) server_status->elts;
-    for (i = 0; i < server_status->nelts; i++) {
-       ap_rprintf(r, "<h2>Connection %ld</h2>\n", status_rows[i].conn_id);
-        apr_table_do(print_status_value, (void *) r, status_rows[i].data, NULL);
+    
+    if (server_status) {
+        ap_rprintf(r, "\n%d connections currently being processed\n",
+                   server_status->nelts);
+
+        status_rows = (ap_status_table_row_t *) server_status->elts;
+        for (i = 0; i < server_status->nelts; i++) {
+           ap_rprintf(r, "<h2>Connection %ld</h2>\n", status_rows[i].conn_id);
+            apr_table_do(print_status_value, (void *) r, status_rows[i].data, 
+                         NULL);
+        }
     }
     ap_rputs("</body></html>\n", r);
     return 0;