From: Apple Date: Tue, 24 Mar 2020 21:06:39 +0000 (+0000) Subject: ipsec-326.40.1.tar.gz X-Git-Tag: macos-10151^0 X-Git-Url: https://git.saurik.com/apple/ipsec.git/commitdiff_plain/fbdc49661690dca0364dc89150f49ac23b1ad9b0?ds=sidebyside ipsec-326.40.1.tar.gz --- 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; }