From dfd38a480bfa7e699020dc2608688d85dd90d89b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 23 Jan 2010 12:52:40 +0100 Subject: [PATCH] ping: use ICMP_MINLEN no code changes Signed-off-by: Bernhard Reutner-Fischer --- networking/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/ping.c b/networking/ping.c index 4e770bdbd..23b39f2e2 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -162,7 +162,7 @@ static void ping6(len_and_sockaddr *lsa) bb_perror_msg("recvfrom"); continue; } - if (c >= 8) { /* icmp6_hdr */ + if (c >= ICMP_MINLEN) { /* icmp6_hdr */ pkt = (struct icmp6_hdr *) packet; if (pkt->icmp6_type == ICMP6_ECHO_REPLY) break; -- 2.25.1