From bf1de31d07c0b56615b504e71bffd29de759709a Mon Sep 17 00:00:00 2001 From: luis Date: Sat, 1 Jun 2013 09:53:18 +0000 Subject: [PATCH] Fix a bug reported by David Young. Nping set the SYN flag in all packets, no matter what was passed by the user through --flags. This patch was submitted by Josh Hunt --- nping/ProbeMode.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/nping/ProbeMode.cc b/nping/ProbeMode.cc index 29b3ce253..bf227fd5a 100644 --- a/nping/ProbeMode.cc +++ b/nping/ProbeMode.cc @@ -800,6 +800,7 @@ int ProbeMode::fillPacketTCP(NpingTarget *target, u16 port, u8 *buff, int buffle t.setOffset(); t.setWindow( o.getTCPWindow() ); t.setUrgPointer(0); + t.setFlags(0); /* Flags */ if( o.getFlagTCP(FLAG_CWR) == 1 ) t.setCWR();