mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Ensure (Wi)Npcap dll is loaded before trying to call version function
This commit is contained in:
parent
67fd101b01
commit
40dc52cfaa
1 changed files with 5 additions and 0 deletions
5
nmap.cc
5
nmap.cc
|
|
@ -1430,6 +1430,11 @@ void parse_options(int argc, char **argv) {
|
|||
}
|
||||
break;
|
||||
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();
|
||||
exit(0);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue