fix: ttl too low infinite loop
This commit is contained in:
@@ -83,6 +83,8 @@ static int check_reply(struct icmphdr *sent_hdr, struct icmphdr *recv_hdr, size_
|
||||
return 1;
|
||||
if (recv_hdr->type == 8)
|
||||
return 1;
|
||||
if (recv_hdr->type != 0)
|
||||
return 0;
|
||||
if ((size_t) recv_size != sent_size)
|
||||
return 1;
|
||||
return check_packet_conformity((char *)sent_hdr, (char *)recv_hdr, recv_size);
|
||||
|
||||
Reference in New Issue
Block a user