diff options
-rw-r--r-- | networking/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
484 | #if ENABLE_PING6 | 484 | #if ENABLE_PING6 |
485 | static void sendping6(int junk UNUSED_PARAM) | 485 | static void sendping6(int junk UNUSED_PARAM) |
486 | { | 486 | { |
487 | struct icmp6_hdr *pkt = alloca(datalen + sizeof(struct icmp6_hdr) + 4); | 487 | struct icmp6_hdr *pkt = G.snd_packet; |
488 | 488 | ||
489 | //memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4); | 489 | //memset(pkt, 0, datalen + sizeof(struct icmp6_hdr) + 4); |
490 | pkt->icmp6_type = ICMP6_ECHO_REQUEST; | 490 | pkt->icmp6_type = ICMP6_ECHO_REQUEST; |