diff options
author | assar <assar> | 2000-07-29 07:53:28 +0000 |
---|---|---|
committer | assar <assar> | 2000-07-29 07:53:28 +0000 |
commit | 1bdce8fba36cc43d0dccf1336dce90bbe5526949 (patch) | |
tree | 4cf027e282d85138f695580f86e68079f848d2d5 /print-ip6.c | |
parent | ed19831eeb1442c85e60919a576105b6f98d2d3f (diff) | |
download | tcpdump-1bdce8fba36cc43d0dccf1336dce90bbe5526949.tar.gz |
(ip6_print): fix flipped arguments to memcpy. From Rafal Maszkowski
<rzm@icm.edu.pl>
Diffstat (limited to 'print-ip6.c')
-rw-r--r-- | print-ip6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-ip6.c b/print-ip6.c index afa1db74..6e21a77a 100644 --- a/print-ip6.c +++ b/print-ip6.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.8 2000-07-11 01:14:41 assar Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.9 2000-07-29 07:53:28 assar Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -73,12 +73,12 @@ ip6_print(register const u_char *bp, register int length) * This will never happen with BPF. It does happen raw packet * dumps from -r. */ - if ((int)ip & 15) { + if ((int)ip6 & 15) { static u_char *abuf; if (abuf == NULL) abuf = malloc(snaplen); - memcpy(ip6, abuf, min(length, snaplen)); + memcpy(abuf, ip6, min(length, snaplen)); snapend += abuf - (u_char *)ip6; packetp = abuf; ip6 = (struct ip6_hdr *)abuf; |