From f9ec6af560fa5b7b5061042221daebf35e4a9dd6 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 29 Nov 2000 15:16:54 +0000 Subject: [PATCH] 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 --- modules/generators/mod_info.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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--; } -- 2.50.1