summaryrefslogtreecommitdiffstats
path: root/modules/generators/mod_info.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2000-11-29 16:16:54 +0100
committerJeff Trawick <trawick@apache.org>2000-11-29 16:16:54 +0100
commit5c1d33b60630a0882fc9679e10abe292d338642d (patch)
tree7136e13b1801c98d0fe4f1e3481d97047f2b1a42 /modules/generators/mod_info.c
parentGet ab to compile cleanly after the apr_initopt() change. (diff)
downloadapache2-5c1d33b60630a0882fc9679e10abe292d338642d.tar.xz
apache2-5c1d33b60630a0882fc9679e10abe292d338642d.zip
Fix a segfault in mod_info. mod_info_module_cmds() had a misstep when
reaching the end of the configuration. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87128 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/generators/mod_info.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/generators/mod_info.c b/modules/generators/mod_info.c
index 3c71808093..71be9f907a 100644
--- a/modules/generators/mod_info.c
+++ b/modules/generators/mod_info.c
@@ -232,7 +232,12 @@ static void mod_info_module_cmds(request_rec * r, const command_rec * cmds,
sizeof(buf), 1));
block_start--;
}
- tmptree = tmptree->parent->next;
+ if (tmptree->parent) {
+ tmptree = tmptree->parent->next;
+ }
+ else {
+ tmptree = NULL;
+ }
nest--;
}