mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fix a diagnostic format string. It was printing a signed long as if it were
unsigned. I got adjust_timeouts2: packet supposedly had rtt of 18446744073707362535 microseconds. Ignoring time. on a 64-bit machine. (18446744073707362535 is 2 ** 64 - 2189081.)
This commit is contained in:
@@ -160,7 +160,7 @@ void adjust_timeouts2(const struct timeval *sent,
|
||||
else {
|
||||
if (delta >= 8000000 || delta < 0) {
|
||||
if (o.verbose)
|
||||
error("%s: packet supposedly had rtt of %lu microseconds. Ignoring time.", __func__, delta);
|
||||
error("%s: packet supposedly had rtt of %ld microseconds. Ignoring time.", __func__, delta);
|
||||
return;
|
||||
}
|
||||
delta -= to->srtt;
|
||||
|
||||
Reference in New Issue
Block a user