1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 03:19:02 +00:00

Setting uninitialized pointer to NULL. It was possible that it would not be set, and also not be NULL so it would bypass the assert() on it, which in turn caused a crash. Found with Coverity, CID 18

This commit is contained in:
kris
2007-11-16 00:48:44 +00:00
parent 242744baaa
commit fe63809293

View File

@@ -1057,7 +1057,7 @@ void ServiceProbe::addMatch(const char *match, int lineno) {
NOT be made static because I have external maintenance tools
(servicematch) which use this */
void parse_nmap_service_probe_file(AllProbes *AP, char *filename) {
ServiceProbe *newProbe;
ServiceProbe *newProbe = NULL;
char line[2048];
int lineno = 0;
FILE *fp;