From 37639cf1325702cbefd192fc1739afe96add7b87 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 31 Oct 2012 15:34:52 +0000 Subject: [PATCH] Fix --send-ip check in win32_fatal_raw_sockets. The meaning of this test was accidentally inverted in r29931. It is supposed to give a fatal error when trying to scan on an non-Ethernet device, unless you have also used the --send-ip option. --- output.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.cc b/output.cc index 1ff8d8fea..a5c7bfa1e 100644 --- a/output.cc +++ b/output.cc @@ -248,7 +248,7 @@ static void print_xml_service(const struct serviceDeductions *sd) { /* Show a fatal error explaining that an interface is not Ethernet and won't work on Windows. Do nothing if --send-ip (PACKET_SEND_IP_STRONG) was used. */ void win32_fatal_raw_sockets(const char *devname) { - if ((o.sendpref & PACKET_SEND_IP_STRONG) == 0) + if ((o.sendpref & PACKET_SEND_IP_STRONG) != 0) return; if (devname != NULL) {