ping: fix IPv6 pinging. Closes bug 3187
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Feb 2011 02:58:43 +0000 (03:58 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Feb 2011 02:58:43 +0000 (03:58 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ping.c

index 11ce24eb50791c715d9253ae9b0a2d40b83d6f11..28ccbb0bb89d21cc63356ad409123f72db680d4f 100644 (file)
@@ -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;