From fb27ac625fdc0b3656c9b9bbda2bf2c7cc4d8666 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 8 Oct 2013 21:50:47 +0000 Subject: [PATCH] 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/. --- osscan.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/osscan.cc b/osscan.cc index ba92fe837..9bc696d5d 100644 --- a/osscan.cc +++ b/osscan.cc @@ -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);