mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 13:19:01 +00:00
Add a constructor to FingerMatch.
Not initializing OS_name was causing problems in parse_single_fingerprint, used by OSassist. I believe the initialization was being done manually wherever this was used in Nmap itself.
This commit is contained in:
@@ -175,6 +175,11 @@ struct FingerMatch {
|
||||
int line; /* For reference prints, the line # in nmap-os-db */
|
||||
char *OS_name;
|
||||
std::vector<OS_Classification> OS_class;
|
||||
|
||||
FingerMatch() {
|
||||
line = -1;
|
||||
OS_name = NULL;
|
||||
}
|
||||
};
|
||||
|
||||
struct FingerTest {
|
||||
|
||||
Reference in New Issue
Block a user