mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Always begin with a TTL of at least 1 in traceroute, even if OS
detection calculated 0 (erroneous if not localhost). This caused an assertion failure reported by Chris Clements in http://seclists.org/nmap-dev/2009/q3/1054.html.
This commit is contained in:
parent
a99b8e5e6b
commit
8fd7a0a46b
1 changed files with 1 additions and 1 deletions
|
|
@ -332,7 +332,7 @@ static unsigned int hop_cache_size();
|
|||
|
||||
HostState::HostState(Target *target) {
|
||||
this->target = target;
|
||||
current_ttl = HostState::distance_guess(target);
|
||||
current_ttl = MAX(1, HostState::distance_guess(target));
|
||||
state = HostState::COUNTING_DOWN;
|
||||
reached_target = 0;
|
||||
pspec = HostState::get_probe(target);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue