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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user