pothuganti sridhar
2016-06-10 09:20:07 UTC
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
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