do not fire a roam job when virtual IP is deleted
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 Aug 2008 19:15:52 +0000 (19:15 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 15 Aug 2008 19:15:52 +0000 (19:15 -0000)
src/charon/kernel/kernel_interface.c

index 91b200e..96d3001 100644 (file)
@@ -814,10 +814,10 @@ static void process_addr(private_kernel_interface_t *this,
                                        found = TRUE;
                                        if (hdr->nlmsg_type == RTM_DELADDR)
                                        {
-                                               changed = TRUE;
                                                addrs->remove(addrs);
                                                if (!addr->virtual)
                                                {
+                                                       changed = TRUE;
                                                        DBG1(DBG_KNL, "%H disappeared from %s",
                                                                 host, iface->ifname);
                                                }