1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Fix an array allocation; we were allocating a multiple of the size of a

struct, not the size of a pointer to it. Over-allocating did no harm
beyond wasting some memory.
This commit is contained in:
david
2010-09-23 05:58:39 +00:00
parent d09ce7ab50
commit 235dab9f24

View File

@@ -2750,7 +2750,7 @@ HostOsScanInfo::HostOsScanInfo(Target *t, OsScanInfo *OsSI) {
target = t; target = t;
OSI = OsSI; OSI = OsSI;
FPs = (FingerPrint **) safe_zalloc(o.maxOSTries() * sizeof(FingerPrint)); FPs = (FingerPrint **) safe_zalloc(o.maxOSTries() * sizeof(FingerPrint *));
FP_matches = (FingerPrintResults *) safe_zalloc(o.maxOSTries() * sizeof(FingerPrintResults)); FP_matches = (FingerPrintResults *) safe_zalloc(o.maxOSTries() * sizeof(FingerPrintResults));
timedOut = false; timedOut = false;
isCompleted = false; isCompleted = false;