1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-12 08:26:33 +00:00

Add a missing }

This commit is contained in:
dmiller
2016-08-11 19:56:18 +00:00
parent 63b31682f4
commit 9fafb473d1

View File

@@ -318,16 +318,17 @@ void win_init()
--unprivileged. In that case don't bother them with a
potential UAC dialog when starting NPF. */
if (o.isRoot()) {
if (start_service("npcap"))
pcap_driver = PCAP_DRIVER_NPCAP;
else if (start_service("npf"))
pcap_driver = PCAP_DRIVER_WINPCAP;
else {
if(o.getDebugging() >= DBG_0) {
error("Unable to start either npcap or npf service");
if (start_service("npcap"))
pcap_driver = PCAP_DRIVER_NPCAP;
else if (start_service("npf"))
pcap_driver = PCAP_DRIVER_WINPCAP;
else {
if(o.getDebugging() >= DBG_0) {
error("Unable to start either npcap or npf service");
}
pcap_driver = PCAP_DRIVER_NONE;
o.setHavePcap(false);
}
pcap_driver = PCAP_DRIVER_NONE;
o.setHavePcap(false);
}
if (pcap_driver == PCAP_DRIVER_NPCAP)