mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
DB cannot be NULL here.
I checked the history and it doesn't appear that DB was ever passed in to this function, but always allocated locally. Found using the STACK tool: http://css.csail.mit.edu/stack/.
This commit is contained in:
parent
5657e7e00b
commit
fb27ac625f
1 changed files with 0 additions and 3 deletions
|
|
@ -1194,9 +1194,6 @@ FingerPrintDB *parse_fingerprint_file(const char *fname) {
|
|||
|
||||
char *p, *q; /* OH YEAH!!!! */
|
||||
|
||||
if (!DB)
|
||||
fatal("non-allocated DB passed to %s", __func__);
|
||||
|
||||
fp = fopen(fname, "r");
|
||||
if (!fp)
|
||||
fatal("Unable to open Nmap fingerprint file: %s", fname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue