kernel-pfroute: Ignore IP address changes if address is %any
authorTobias Brunner <tobias@strongswan.org>
Wed, 10 Jul 2013 14:28:55 +0000 (16:28 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 17 Jul 2013 15:45:18 +0000 (17:45 +0200)
src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c

index 6a19184..a5453d0 100644 (file)
@@ -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;
        }