aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-07-10 16:28:55 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-17 17:45:18 +0200
commitfae4d67adc20d0efc00775d441a16f1c18956c2b (patch)
tree9c214c3608a0ea83e0d74a0f0f617c1716896218 /src
parentb308a97944511155b3bcc51d52ebbb0d8992da55 (diff)
downloadstrongswan-fae4d67adc20d0efc00775d441a16f1c18956c2b.tar.bz2
strongswan-fae4d67adc20d0efc00775d441a16f1c18956c2b.tar.xz
kernel-pfroute: Ignore IP address changes if address is %any
Diffstat (limited to 'src')
-rw-r--r--src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c
index 6a191842e..a5453d0bb 100644
--- a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c
+++ b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c
@@ -665,8 +665,9 @@ static void process_addr(private_kernel_pfroute_net_t *this,
}
enumerator->destroy(enumerator);
- if (!host)
+ if (!host || host->is_anyaddr(host))
{
+ DESTROY_IF(host);
return;
}