validator: Avoid infinite loop in --dry-run mode

This commit is contained in:
Roman Trunov 2019-05-13 11:19:05 +03:00
parent b541c2d6ec
commit 097b510223
1 changed files with 1 additions and 0 deletions

View File

@ -801,6 +801,7 @@ bool do_validate_scan() {
if (!retval) found = true;
if (++i == one_pass_N_WU) break;
if (wu_id) break;
if (dry_run) break; // otherwise it will enumerate forever
}
return found;
}