Make a more reasonable assertion. Fixes #1546

This commit is contained in:
dmiller 2026-06-17 19:31:35 +00:00
parent 364c172f7d
commit f25312130b

View file

@ -1224,7 +1224,7 @@ void TracerouteState::read_replies(long timeout) {
struct timeval now;
Reply reply;
assert(timeout / 1000 <= (long) o.scan_delay);
assert(o.scan_delay == 0 || (timeout / 1000 <= (long) o.scan_delay));
timeout = MAX(timeout, 10000);
now = get_now();