Blame SOURCES/libreswan-3.25-1686991-ikev1-del.patch

ae87d2
diff -Naur libreswan-3.25-orig/programs/pluto/ikev1_main.c libreswan-3.25/programs/pluto/ikev1_main.c
ae87d2
--- libreswan-3.25-orig/programs/pluto/ikev1_main.c	2019-05-07 15:41:26.366181612 -0400
ae87d2
+++ libreswan-3.25/programs/pluto/ikev1_main.c	2019-05-07 15:45:41.780183599 -0400
ae87d2
@@ -2727,30 +2727,11 @@
ae87d2
 					 * Useful if the other peer is
ae87d2
 					 * rebooting.
ae87d2
 					 */
ae87d2
-					if (dst->st_event != NULL &&
ae87d2
-					    dst->st_event->ev_type ==
ae87d2
-						  EVENT_SA_REPLACE &&
ae87d2
-					    !monobefore(monotimesum(mononow(),
ae87d2
-						  deltatime(DELETE_SA_DELAY)),
ae87d2
-						dst->st_event->ev_time)) {
ae87d2
-						/*
ae87d2
-						 * Patch from Angus Lees to
ae87d2
-						 * ignore retransmitted
ae87d2
-						 * Delete SA.
ae87d2
-						 */
ae87d2
-						loglog(RC_LOG_SERIOUS,
ae87d2
-							"received Delete SA payload: already replacing IPSEC State #%lu in %ld seconds",
ae87d2
-							dst->st_serialno,
ae87d2
-							(long)deltasecs(monotimediff(
ae87d2
-								dst->st_event->ev_time,
ae87d2
-								mononow())));
ae87d2
-					} else {
ae87d2
-						loglog(RC_LOG_SERIOUS,
ae87d2
-							"received Delete SA payload: replace IPSEC State #%lu now",
ae87d2
-							dst->st_serialno);
ae87d2
-						dst->st_margin = deltatime(0);
ae87d2
-						event_force(EVENT_SA_REPLACE, dst);
ae87d2
-					}
ae87d2
+					loglog(RC_LOG_SERIOUS,
ae87d2
+						"received Delete SA payload: replace IPSEC State #%lu now",
ae87d2
+						dst->st_serialno);
ae87d2
+					dst->st_margin = deltatime(0);
ae87d2
+					event_force(EVENT_SA_REPLACE, dst);
ae87d2
 				} else {
ae87d2
 					loglog(RC_LOG_SERIOUS,
ae87d2
 						"received Delete SA(0x%08" PRIx32 ") payload: deleting IPSEC State #%lu",