summaryrefslogtreecommitdiff
path: root/server/config.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2010-09-05 15:44:19 +0000
committerStefan Fritsch <sf@apache.org>2010-09-05 15:44:19 +0000
commit70be0f7a073f54474461c22ba8ca943bf8e0373a (patch)
tree31e5ab8cead4815d8f6faf3c4d355eb713bb6ec0 /server/config.c
parenta0e0e585b08c37ee4769fe4f0112b7b3ae8ff9b0 (diff)
downloadhttpd-70be0f7a073f54474461c22ba8ca943bf8e0373a.tar.gz
Add ErrorLogFormat directive for configuring the error log format, including
additional information that is logged once per connection or request. Add error log IDs for connections and request to allow correlating error log lines and the corresponding access log entry. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@992806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/config.c')
-rw-r--r--server/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/config.c b/server/config.c
index ea54280ea4..dc9b3b64a4 100644
--- a/server/config.c
+++ b/server/config.c
@@ -747,7 +747,7 @@ AP_DECLARE(const char *) ap_setup_prelinked_modules(process_rec *process)
ap_loaded_modules = (module **)apr_palloc(process->pool,
sizeof(module *) * conf_vector_length);
if (!ap_module_short_names)
- ap_module_short_names = malloc(sizeof(char *) * conf_vector_length);
+ ap_module_short_names = calloc(sizeof(char *), conf_vector_length);
if (ap_loaded_modules == NULL || ap_module_short_names == NULL) {
return "Ouch! Out of memory in ap_setup_prelinked_modules()!";
@@ -780,8 +780,8 @@ AP_DECLARE(const char *) ap_find_module_name(module *m)
AP_DECLARE(const char *) ap_find_module_short_name(int module_index)
{
- if (module_index < 0)
- return "-";
+ if (module_index < 0 || module_index >= conf_vector_length)
+ return NULL;
return ap_module_short_names[module_index];
}