From: Tobias Brunner Date: Thu, 27 Sep 2012 10:42:48 +0000 (+0200) Subject: Properly initialize cached address map in kernel-pfroute plugin X-Git-Tag: 5.0.1~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9845391a9591fc701e1185df26f49cd929721d3d;p=thirdparty%2Fstrongswan.git Properly initialize cached address map in kernel-pfroute plugin --- diff --git a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c index 07bfbdd44a..16a46bb56a 100644 --- a/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c +++ b/src/libhydra/plugins/kernel_pfroute/kernel_pfroute_net.c @@ -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); } } }