diff --git a/src/main.c b/src/main.c index baca05e..2009aa9 100644 --- a/src/main.c +++ b/src/main.c @@ -214,7 +214,7 @@ int main(int ac, char **av) } gettimeofday(&stop, NULL); } - while (((size_t) ret != recv_packet_size) || (check_reply(&settings.dest.ip, &sender, packet, buffer + sizeof(struct iphdr), packet_size))); + while (check_reply(&settings.dest.ip, &sender, packet, buffer + sizeof(struct iphdr), packet_size)); if (((struct icmphdr *) buffer + sizeof(struct iphdr))->type == 0) stats.packets_received++;