mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Avoid negative array index (-1). Found with Coverity, CID 11
This commit is contained in:
parent
5e67f7db4c
commit
242744baaa
1 changed files with 1 additions and 1 deletions
|
|
@ -1608,7 +1608,7 @@ void HostOsScan::makeFP(HostOsScanStats *hss) {
|
|||
}
|
||||
last = i;
|
||||
}
|
||||
if (last) hss->FPtests[last]->next = NULL;
|
||||
if (last != -1) hss->FPtests[last]->next = NULL;
|
||||
|
||||
/* printf("%s", fp2ascii(FP)); */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue