1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 21:29:06 +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:
david
2013-10-08 21:50:47 +00:00
parent 5657e7e00b
commit fb27ac625f

View File

@@ -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);