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.
This commit is contained in:
Felipe Zimmerle 2013-10-31 06:11:35 -07:00
parent b9fdc4fe3b
commit 80185e2a90

View File

@ -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 " \