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:
5
nmap.cc
5
nmap.cc
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user