Hi,

There seems to be a bug in ping_main when the ipv6 code is enabled. No
matter what erguments, it prints 'bad address 'qing'. :)
Patch below.

Kind regards,
dieter


--- ./busybox-1.6.0/networking/ping.c.orig      2007-07-02
10:17:21.000000000 +0000
+++ ./busybox-1.6.0/networking/ping.c   2007-07-02 10:17:57.000000000
+0000
@@ -179,7 +179,7 @@
        len_and_sockaddr *lsa;
 #if ENABLE_PING6
        sa_family_t af = AF_UNSPEC;
-       while (++argv[0][0] == '-') {
+       while ((++argv)[0] && argv[0][0] == '-') {
                if (argv[0][1] == '4') {
                        af = AF_INET;
                        continue;


--
NEW on aXs GUARD: SSL VPN !! (contact your reseller for more info)

---------------------------------------------------
aXs GUARD has completed security and anti-virus checks on this e-mail 
(http://www.axsguard.com)
---------------------------------------------------
Able NV: ond.nr 0457.938.087
RPR Mechelen

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to