mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Remove some code that only applied to gen-1 OS detection.
This commit is contained in:
@@ -104,9 +104,7 @@ FingerPrintResults::FingerPrintResults() {
|
|||||||
osscan_opentcpport = osscan_closedtcpport = osscan_closedudpport = -1;
|
osscan_opentcpport = osscan_closedtcpport = osscan_closedudpport = -1;
|
||||||
distance = -1;
|
distance = -1;
|
||||||
distance_guess = -1;
|
distance_guess = -1;
|
||||||
/* We keep FPs holding at least 10 records because Gen1 OS detection
|
FPs = (FingerPrint **) safe_zalloc(o.maxOSTries() * sizeof(FingerPrint *));
|
||||||
doesn't support maxOSTries() */
|
|
||||||
FPs = (FingerPrint **) safe_zalloc(MAX(o.maxOSTries(), 10) * sizeof(FingerPrint *));
|
|
||||||
maxTimingRatio = 0;
|
maxTimingRatio = 0;
|
||||||
numFPs = 0;
|
numFPs = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user