Blame SOURCES/cryptsetup-2.0.6-do-not-validate-keyslot-areas-so-frantically.patch

7cdc99
diff -rupN cryptsetup-2.0.3.old/lib/luks2/luks2_json_metadata.c cryptsetup-2.0.3/lib/luks2/luks2_json_metadata.c
7cdc99
--- cryptsetup-2.0.3.old/lib/luks2/luks2_json_metadata.c	2019-03-27 15:10:10.869610792 +0100
7cdc99
+++ cryptsetup-2.0.3/lib/luks2/luks2_json_metadata.c	2019-03-27 15:32:38.202382332 +0100
7cdc99
@@ -402,7 +402,6 @@ static json_bool validate_intervals(int
7cdc99
 	return TRUE;
7cdc99
 }
7cdc99
 
7cdc99
-static int hdr_validate_areas(json_object *hdr_jobj);
7cdc99
 int LUKS2_keyslot_validate(json_object *hdr_jobj, json_object *hdr_keyslot, const char *key)
7cdc99
 {
7cdc99
 	json_object *jobj_key_size;
7cdc99
@@ -419,9 +418,6 @@ int LUKS2_keyslot_validate(json_object *
7cdc99
 		return 1;
7cdc99
 	}
7cdc99
 
7cdc99
-	if (hdr_validate_areas(hdr_jobj))
7cdc99
-		return 1;
7cdc99
-
7cdc99
 	return 0;
7cdc99
 }
7cdc99