]> granicus.if.org Git - apache/commitdiff
Fix a segfault in mod_info. mod_info_module_cmds() had a misstep when
authorJeff Trawick <trawick@apache.org>
Wed, 29 Nov 2000 15:16:54 +0000 (15:16 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 29 Nov 2000 15:16:54 +0000 (15:16 +0000)
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

index 3c71808093bfcb217e4078a8bff635884e647fd2..71be9f907a2b4d9141c53ed0a11f98a84cb67fd7 100644 (file)
@@ -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--;
        }