Re-enabled unconditional reporting of MD5 tags with -check_media

This commit is contained in:
2018-11-01 11:04:13 +01:00
parent 9cfd466b8f
commit ff68bda006
5 changed files with 55 additions and 37 deletions

View File

@ -2543,8 +2543,7 @@ int Xorriso_chunk_md5(struct XorrisO *xorriso, char *data, int to_read,
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, sev_text, 0);
}
if(valid && (tag_type == 1 || (tag_type == 4 && pos == lba && lba < 32))){
if(state->md5_spot_value != Xorriso_read_quality_untesteD &&
Xorriso_read_quality_md5_mismatcH <= xorriso->check_media_bad_limit){
if(state->md5_spot_value != Xorriso_read_quality_untesteD) {
ret= Xorriso__add_spot(state, state->md5_start,
state->md5_spot_lba - state->md5_start, state->md5_spot_value, 0);
if(ret <= 0)