From a3cb92569981ee616dfeb14617ba31a3299a4660 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 29 Oct 2011 01:41:28 +0000 Subject: [PATCH] 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. --- global_structures.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/global_structures.h b/global_structures.h index 9e6f0ccb2..220e2f058 100644 --- a/global_structures.h +++ b/global_structures.h @@ -175,6 +175,11 @@ struct FingerMatch { int line; /* For reference prints, the line # in nmap-os-db */ char *OS_name; std::vector OS_class; + + FingerMatch() { + line = -1; + OS_name = NULL; + } }; struct FingerTest {