mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
don't log (trace) an IP packet if the send failed
This commit is contained in:
3
tcpip.cc
3
tcpip.cc
@@ -576,7 +576,8 @@ int send_ip_packet(int sd, struct eth_nfo *eth, u8 *packet,
|
|||||||
}else{
|
}else{
|
||||||
res = send_ip_packet_eth_or_sd(sd, eth, packet, packetlen);
|
res = send_ip_packet_eth_or_sd(sd, eth, packet, packetlen);
|
||||||
}
|
}
|
||||||
PacketTrace::trace(PacketTrace::SENT, packet, packetlen);
|
if (res != -1)
|
||||||
|
PacketTrace::trace(PacketTrace::SENT, packet, packetlen);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user