summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2011-02-05 03:58:43 +0100
committerDenys Vlasenko2011-02-05 03:58:43 +0100
commit1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c (patch)
treed4bb31e0eae1fb0beac2d6291a0bca62c1b6beae /networking
parent07078c29663c6530e6a35b136422448c3bd6d105 (diff)
downloadbusybox-1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c.zip
busybox-1bb52a9b73772d47a49bcaee0eb4eeb0c68b9b4c.tar.gz
ping: fix IPv6 pinging. Closes bug 3187
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ping.c b/networking/ping.c
index 11ce24e..28ccbb0 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;