Fixes
9d7f49df47ad ("redurects: add support to define multiple zones for dnat reflection rules")
Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
return;
ext_addrs = fw3_resolve_zone_addresses(redir->_src, &redir->ip_dest);
return;
ext_addrs = fw3_resolve_zone_addresses(redir->_src, &redir->ip_dest);
list_for_each_entry(ext_addr, ext_addrs, list)
{
list_for_each_entry(ext_addr, ext_addrs, list)
{
continue;
int_addrs = fw3_resolve_zone_addresses(zone, NULL);
continue;
int_addrs = fw3_resolve_zone_addresses(zone, NULL);
+ if (!int_addrs)
+ continue;
+
list_for_each_entry(int_addr, int_addrs, list)
{
if (!fw3_is_family(int_addr, handle->family))
list_for_each_entry(int_addr, int_addrs, list)
{
if (!fw3_is_family(int_addr, handle->family))
&ref_addr, int_addr, ext_addr, reflection_zone);
}
}
&ref_addr, int_addr, ext_addr, reflection_zone);
}
}
+
+ fw3_free_list(int_addrs);
fw3_free_list(ext_addrs);
fw3_free_list(ext_addrs);
- fw3_free_list(int_addrs);