1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-26 08:09:07 +00:00

Add a constructor for FingerPrint.

This commit is contained in:
david
2009-12-18 07:59:31 +00:00
parent a12c181883
commit 06afa7b303
2 changed files with 6 additions and 0 deletions

View File

@@ -180,6 +180,7 @@ struct FingerPrint {
std::vector<OS_Classification> OS_class;
std::vector<FingerTest> tests;
const FingerTest *gettestbyname(const char *name) const;
FingerPrint();
};
/* This structure contains the important data from the fingerprint

View File

@@ -188,6 +188,11 @@ FingerPrintDB::~FingerPrintDB() {
delete *current;
}
FingerPrint::FingerPrint() {
line = 0;
OS_name = NULL;
}
const struct AVal *FingerTest::getattrbyname(const char *name) const {
std::vector<struct AVal>::const_iterator i;