[strongSwan-dev] installing route in table 220 is random

pothuganti sridhar pothuganti.sridhar at gmail.com
Fri Jun 10 11:20:07 CEST 2016


Hi,

I am using strongswan 5.3.0 as hub in "hub and spoke" topology. In the HUB
I am configuring "leftsubnet" as "0.0.0.0/0".

When leftsubnet is "0.0.0.0/0", installation of route is not happening
always. I have debugged this issue, and found a variable is being used
uninitialized causing this issue.

Following is the fix.

diff --git a/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
b/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
index 3b32ba5..2e91ec4 100644
--- a/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
+++ b/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_ipsec.c
@@ -2227,7 +2227,7 @@ static bool
install_route(private_kernel_pfkey_ipsec_t *this,
 {
        route_entry_t *route, *old;
        host_t *host, *src, *dst;
-       bool is_virtual;
+       bool is_virtual=0;

        if
(hydra->kernel_interface->get_address_by_ts(hydra->kernel_interface,

in->dst_ts, &host, &is_virtual) != SUCCESS)
--

What is the best way to contribute to the strongswan code, if we made any
fixes.

Thanks,
Sridhar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20160610/8818096f/attachment.html>


More information about the Dev mailing list