1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00

Return 0 on success in read_config_file.

This commit is contained in:
david
2011-12-19 22:00:17 +00:00
parent c255745299
commit 86bb24947a

View File

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