diff --git a/nmap.cc b/nmap.cc index 7cc369ab3..aea7003b2 100644 --- a/nmap.cc +++ b/nmap.cc @@ -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]);