From 0a9c7310ce5c43c094c9d123c24e24f8f78be77d Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 31 Dec 1999 17:38:25 +0000 Subject: [PATCH] Fix a bug in mod_status. ap_ht_time expects an ap_time_t type, instead of a time_t now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84383 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_status.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/generators/mod_status.c b/modules/generators/mod_status.c index 75a5a0b01f..1901816fab 100644 --- a/modules/generators/mod_status.c +++ b/modules/generators/mod_status.c @@ -82,7 +82,10 @@ static int status_handler(request_rec *r) int i; ap_array_header_t *server_status; ap_status_table_row_t *status_rows; - time_t nowtime = time(NULL); + ap_time_t *nowtime = NULL; + + ap_make_time(&nowtime, r->pool); + ap_curtime(nowtime); r->allowed = (1 << M_GET); if (r->method_number != M_GET) -- 2.50.1