1
0
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:
david
2011-08-16 17:50:23 +00:00
parent 3731a3cb29
commit d62da6eb45

View File

@@ -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;
} }