mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Add a constructor for FingerPrint.
This commit is contained in:
parent
a12c181883
commit
06afa7b303
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue