From 9fafb473d1d2baf5c3f37f90867f164c83325cd5 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 11 Aug 2016 19:56:18 +0000 Subject: [PATCH] Add a missing } --- nping/winfix.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/nping/winfix.cc b/nping/winfix.cc index 8726648f8..e710157b8 100644 --- a/nping/winfix.cc +++ b/nping/winfix.cc @@ -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)