mirror of
https://github.com/nmap/nmap.git
synced 2026-06-26 03:03:55 +00:00
Return 0 on success in read_config_file.
This commit is contained in:
parent
c255745299
commit
86bb24947a
1 changed files with 5 additions and 2 deletions
|
|
@ -575,7 +575,7 @@ static int read_config_file(const char *conf_filename)
|
|||
return -1;
|
||||
}
|
||||
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -655,7 +655,10 @@ int main(int argc, char *argv[])
|
|||
if (options.verbose)
|
||||
summarize_options();
|
||||
|
||||
read_config_file(options.conf_filename);
|
||||
if (read_config_file(options.conf_filename) == -1) {
|
||||
fprintf(stderr, "Can't read config file %s.\n", options.conf_filename);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (try_channels(options.channels, options.num_channels) == 0)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue