Properly initialize cached address map in kernel-pfroute plugin
[strongswan.git] / src / libhydra / plugins / kernel_pfroute / kernel_pfroute_net.c
index 07bfbdd..16a46bb 100644 (file)
@@ -731,6 +731,7 @@ static status_t init_address_list(private_kernel_pfroute_net_t *this)
                                        addr->virtual = FALSE;
                                        addr->refcount = 1;
                                        iface->addrs->insert_last(iface->addrs, addr);
+                                       addr_map_entry_add(this, addr, iface);
                                }
                        }
                }