From d62da6eb45f08525b563da6e476fa1800d0e4e37 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 16 Aug 2011 17:50:23 +0000 Subject: [PATCH] Remove some code that only applied to gen-1 OS detection. --- FingerPrintResults.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/FingerPrintResults.cc b/FingerPrintResults.cc index 34d9363b9..86bc6e31a 100644 --- a/FingerPrintResults.cc +++ b/FingerPrintResults.cc @@ -104,9 +104,7 @@ FingerPrintResults::FingerPrintResults() { osscan_opentcpport = osscan_closedtcpport = osscan_closedudpport = -1; distance = -1; distance_guess = -1; - /* We keep FPs holding at least 10 records because Gen1 OS detection - doesn't support maxOSTries() */ - FPs = (FingerPrint **) safe_zalloc(MAX(o.maxOSTries(), 10) * sizeof(FingerPrint *)); + FPs = (FingerPrint **) safe_zalloc(o.maxOSTries() * sizeof(FingerPrint *)); maxTimingRatio = 0; numFPs = 0; }