From fbdc49661690dca0364dc89150f49ac23b1ad9b0 Mon Sep 17 00:00:00 2001 From: Apple Date: Tue, 24 Mar 2020 21:06:39 +0000 Subject: [PATCH] ipsec-326.40.1.tar.gz --- ipsec-tools/racoon/ipsec_doi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ipsec-tools/racoon/ipsec_doi.c b/ipsec-tools/racoon/ipsec_doi.c index 1b55657..87a3088 100644 --- a/ipsec-tools/racoon/ipsec_doi.c +++ b/ipsec-tools/racoon/ipsec_doi.c @@ -34,6 +34,7 @@ #include #include #include +#include #include @@ -3999,8 +4000,8 @@ ipsecdoi_setid2(iph2) local_v4_address.sin_len = sizeof(struct sockaddr_in); local_v4_address.sin_family = AF_INET; local_v4_address.sin_port = ((struct sockaddr_in6 *)&sp->spidx.src)->sin6_port; - local_v4_address.sin_addr.s_addr = 0; - + // Setting a fixed IPv4 address to avoid FATAL-ID issue with 0.0.0.0 IPv4 address + inet_pton(AF_INET, "192.168.2.2", &local_v4_address.sin_addr); srcaddr = ALIGNED_CAST(struct sockaddr_storage *)&local_v4_address; prefs = 32; } -- 2.45.2