From 1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 5 Feb 2011 03:58:43 +0100 Subject: [PATCH] ping: fix IPv6 pinging. Closes bug 3187 Signed-off-by: Denys Vlasenko --- networking/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/ping.c b/networking/ping.c index 11ce24eb5..28ccbb0bb 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -484,7 +484,7 @@ static void sendping4(int junk UNUSED_PARAM) #if ENABLE_PING6 static void sendping6(int junk UNUSED_PARAM) { - struct icmp6_hdr *pkt = alloca(datalen + sizeof(struct icmp6_hdr) + 4); + struct icmp6_hdr *pkt = G.snd_packet; //memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4); pkt->icmp6_type = ICMP6_ECHO_REQUEST; -- 2.25.1