221bf6
diff -Naur libreswan-3.25-orig/programs/pluto/ikev1_spdb_struct.c libreswan-3.25/programs/pluto/ikev1_spdb_struct.c
221bf6
--- libreswan-3.25-orig/programs/pluto/ikev1_spdb_struct.c	2018-06-27 22:42:26.000000000 +0700
221bf6
+++ libreswan-3.25/programs/pluto/ikev1_spdb_struct.c	2018-11-22 20:29:34.034626926 +0700
221bf6
@@ -1053,10 +1053,11 @@
221bf6
 				loglog(RC_LOG_SERIOUS,
221bf6
 				       "You should NOT use insecure/broken IKE algorithms (%s)!",
221bf6
 				       ta->ta_encrypt->common.fqn);
221bf6
+			} else {
221bf6
+				DBG(DBG_CONTROL,
221bf6
+					DBG_log("OAKLEY proposal verified; matching alg_info found"));
221bf6
+				return true;
221bf6
 			}
221bf6
-			DBG(DBG_CONTROL,
221bf6
-			    DBG_log("OAKLEY proposal verified; matching alg_info found"));
221bf6
-			return true;
221bf6
 		}
221bf6
 	}
221bf6
 	libreswan_log("Oakley Transform [%s (%d), %s, %s] refused%s",