From fc9290d734e2f59c50ad36a3cd3c2bbd7a442c2b Mon Sep 17 00:00:00 2001 From: david Date: Fri, 19 Dec 2008 17:59:01 +0000 Subject: [PATCH] Remove the unused seq_info array from HostOsScanInfo. That information is kept in a variable in HostOsScanStats and reinitialized for each scan round. The two variables had the same name (si) and it was confusing. --- osscan2.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/osscan2.cc b/osscan2.cc index 4fe685535..3421a7b7a 100644 --- a/osscan2.cc +++ b/osscan2.cc @@ -505,7 +505,6 @@ public: OsScanInfo *OSI; /* The OSI which contains this HostOsScanInfo */ FingerPrint **FPs; /* Fingerprints of the host */ FingerPrintResults *FP_matches; /* Fingerprint-matching results */ - struct seq_info *si; bool timedOut; bool isCompleted; HostOsScanStats *hss; /* Scan status of the host in one scan round */ @@ -2853,7 +2852,6 @@ HostOsScanInfo::HostOsScanInfo(Target *t, OsScanInfo *OsSI) { FPs = (FingerPrint **) safe_zalloc(o.maxOSTries() * sizeof(FingerPrint *)); FP_matches = (FingerPrintResults *) safe_zalloc(o.maxOSTries() * sizeof(FingerPrintResults)); - si = (struct seq_info *) safe_zalloc(o.maxOSTries() * sizeof(struct seq_info)); timedOut = false; isCompleted = false; @@ -2868,7 +2866,6 @@ HostOsScanInfo::~HostOsScanInfo() { delete hss; free(FPs); free(FP_matches); - free(si); } OsScanInfo::OsScanInfo(vector &Targets) {