diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-21 21:59:26 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-21 21:59:26 +0100 |
commit | e8f565c1eeba336fa13ce8216464c9daedd36f76 (patch) | |
tree | 85a8bba11af1083fc0eacd310e91df05185892ec /networking/traceroute.c | |
parent | b40da22357563bf53fa93823342f8ab59899222d (diff) | |
parent | dd169e84683aa7be3604d491f1c34ab657973365 (diff) | |
download | busybox-e8f565c1eeba336fa13ce8216464c9daedd36f76.tar.gz |
Merge branch 'master' of git+ssh://vda@busybox.net/var/lib/git/busybox
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | networking/traceroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index c18fba8d0..82bb0118c 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c @@ -751,7 +751,8 @@ print(int read_len, const struct sockaddr *from, const struct sockaddr *to) } else #endif { - read_len -= ((struct ip*)recv_pkt)->ip_hl << 2; + struct ip *ip4packet = (struct ip*)recv_pkt; + read_len -= ip4packet->ip_hl << 2; } printf(" %d bytes to %s", read_len, ina); free(ina); |