From 40dc52cfaa3f2341ae46b09a0a7fef4b5bffdb04 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 14 Jun 2016 14:16:47 +0000 Subject: [PATCH] Ensure (Wi)Npcap dll is loaded before trying to call version function --- nmap.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nmap.cc b/nmap.cc index 87bca1807..50d028206 100644 --- a/nmap.cc +++ b/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;