mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49: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:
parent
d09ce7ab50
commit
235dab9f24
1 changed files with 1 additions and 1 deletions
|
|
@ -2750,7 +2750,7 @@ HostOsScanInfo::HostOsScanInfo(Target *t, OsScanInfo *OsSI) {
|
|||
target = t;
|
||||
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));
|
||||
timedOut = false;
|
||||
isCompleted = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue