From 80185e2a9021b6199061a32fa74ffdf4de296355 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 31 Oct 2013 06:11:35 -0700 Subject: [PATCH] Bugfix: Missing ipv6 support check The Function "ip_tree_from_file" was making a reference for IPV6_TREE whitout checkingx if it was supported or not. --- apache2/msc_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apache2/msc_util.c b/apache2/msc_util.c index 092a2610..73b3f469 100644 --- a/apache2/msc_util.c +++ b/apache2/msc_util.c @@ -2547,11 +2547,12 @@ int ip_tree_from_file(TreeRoot **rtree_, char *uri, { tnode = TreeAddIP(start, rtree->ipv4_tree, IPV4_TREE); } +#if APR_HAVE_IPV6 else { tnode = TreeAddIP(start, rtree->ipv6_tree, IPV6_TREE); } - +#endif if (tnode == NULL) { *error_msg = apr_psprintf(mp, "Could not add entry " \