mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
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:
parent
b9fdc4fe3b
commit
80185e2a90
@ -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 " \
|
||||
|
Loading…
x
Reference in New Issue
Block a user