mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Remove addrset_init from load_exclude_{file,string}.
That's the responsibility of calling code; also, these should accumulate.
This commit is contained in:
parent
3b273eaf81
commit
5f99b2ad9e
1 changed files with 0 additions and 2 deletions
|
|
@ -169,7 +169,6 @@ static int hostInExclude(struct sockaddr *checksock, size_t checksocklen,
|
|||
|
||||
/* Load an exclude list from a file for --excludefile. */
|
||||
int load_exclude_file(addrset *excludelist, FILE *fp) {
|
||||
addrset_init(excludelist);
|
||||
char host_spec[1024];
|
||||
size_t n;
|
||||
|
||||
|
|
@ -187,7 +186,6 @@ int load_exclude_file(addrset *excludelist, FILE *fp) {
|
|||
/* Load a comma-separated exclude list from a string, the argument to
|
||||
--exclude. */
|
||||
int load_exclude_string(addrset *excludelist, const char *s) {
|
||||
addrset_init(excludelist);
|
||||
if (!addrset_add_spec(excludelist, s, o.af(), 1)){
|
||||
fatal("Invalid address specification: %s", s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue