mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Initialize exclude_group with addrset_init() before use, otherwise you just
end up freeing an invalid pointer if no exclude lists are added by then.
This commit is contained in:
parent
c8952f48cd
commit
4a12617401
1 changed files with 2 additions and 0 deletions
2
nmap.cc
2
nmap.cc
|
|
@ -1647,6 +1647,8 @@ int nmap_main(int argc, char *argv[]) {
|
|||
shortfry(ports.prots, ports.prot_count);
|
||||
}
|
||||
|
||||
addrset_init(&exclude_group);
|
||||
|
||||
/* lets load our exclude list */
|
||||
if (excludefd != NULL) {
|
||||
load_exclude_file(&exclude_group, excludefd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue