1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-07 22:16:33 +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:
shinnok
2011-06-21 11:37:46 +00:00
parent c8952f48cd
commit 4a12617401

View File

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