1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Ensure (Wi)Npcap dll is loaded before trying to call version function

This commit is contained in:
dmiller
2016-06-14 14:16:47 +00:00
parent 67fd101b01
commit 40dc52cfaa

View File

@@ -1430,6 +1430,11 @@ void parse_options(int argc, char **argv) {
} }
break; break;
case 'V': case 'V':
#ifdef WIN32
/* For pcap_get_version, since we need to get the correct Npcap/WinPcap
* DLL loaded */
win_init();
#endif
display_nmap_version(); display_nmap_version();
exit(0); exit(0);
break; break;