Skip to content

Commit 80185e2

Browse files
author
Felipe Zimmerle
committed
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.
1 parent b9fdc4f commit 80185e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apache2/msc_util.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2547,11 +2547,12 @@ int ip_tree_from_file(TreeRoot **rtree_, char *uri,
25472547
{
25482548
tnode = TreeAddIP(start, rtree->ipv4_tree, IPV4_TREE);
25492549
}
2550+
#if APR_HAVE_IPV6
25502551
else
25512552
{
25522553
tnode = TreeAddIP(start, rtree->ipv6_tree, IPV6_TREE);
25532554
}
2554-
2555+
#endif
25552556
if (tnode == NULL)
25562557
{
25572558
*error_msg = apr_psprintf(mp, "Could not add entry " \

0 commit comments

Comments
 (0)