1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +00:00

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

This commit is contained in:
luis
2013-06-01 09:53:18 +00:00
parent 8be62726e5
commit bf1de31d07

View File

@@ -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();