From 4a12617401e5b8348fb4fc95001da6a5578a4ece Mon Sep 17 00:00:00 2001 From: shinnok Date: Tue, 21 Jun 2011 11:37:46 +0000 Subject: [PATCH] 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. --- nmap.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nmap.cc b/nmap.cc index 875aea6e8..c26a718e1 100644 --- a/nmap.cc +++ b/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);