1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-04 12:36:34 +00:00

Don't print_iflist until after win_init.

This commit is contained in:
david
2012-05-05 00:43:35 +00:00
parent a83f94efcc
commit ef2987bc68

View File

@@ -1366,10 +1366,6 @@ void apply_delayed_options() {
log_write(LOG_STDOUT|LOG_SKID, "Nmap wishes you a merry Christmas! Specify -sX for Xmas Scan (http://nmap.org/book/man-port-scanning-techniques.html).\n");
}
}
if (delayed_options.iflist) {
print_iflist();
exit(0);
}
#ifndef NOLUA
if (o.scripthelp) {
@@ -1566,6 +1562,11 @@ int nmap_main(int argc, char *argv[]) {
win_init();
#endif
if (delayed_options.iflist) {
print_iflist();
exit(0);
}
/* more fakeargv junk, BTW malloc'ing extra space in argv[0] doesn't work */
if (o.quashargv) {
size_t fakeargvlen = strlen(FAKE_ARGV), argvlen = strlen(argv[0]);