mirror of
https://github.com/nmap/nmap.git
synced 2026-06-20 15:41:31 +00:00
don't log (trace) an IP packet if the send failed
This commit is contained in:
parent
85f7060088
commit
886015d72c
1 changed files with 2 additions and 1 deletions
3
tcpip.cc
3
tcpip.cc
|
|
@ -576,7 +576,8 @@ int send_ip_packet(int sd, struct eth_nfo *eth, u8 *packet,
|
|||
}else{
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue