mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
242744baaa
commit
fe63809293
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue