diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-09-17 16:45:43 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2011-09-17 16:45:43 +0000 |
commit | 90c927e10a1be3e81daac70dbe8bdd24b1f0220f (patch) | |
tree | 261d76cbb4f6bc5e18749e03c99f788d72fe34b5 /usr.sbin/tcpdump/print-ip6.c | |
parent | cacc58fdb8088fbadf3df590d89b52284739245e (diff) |
update pointer variable after copying misaligned packet; ok claudio@
Diffstat (limited to 'usr.sbin/tcpdump/print-ip6.c')
-rw-r--r-- | usr.sbin/tcpdump/print-ip6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-ip6.c b/usr.sbin/tcpdump/print-ip6.c index 73fa784a47a..c313d9f895a 100644 --- a/usr.sbin/tcpdump/print-ip6.c +++ b/usr.sbin/tcpdump/print-ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-ip6.c,v 1.14 2011/06/27 16:54:14 dhill Exp $ */ +/* $OpenBSD: print-ip6.c,v 1.15 2011/09/17 16:45:42 naddy Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 @@ -81,7 +81,7 @@ ip6_print(register const u_char *bp, register int length) } memmove((char *)abuf, (char *)ip6, min(length, clen)); snapend = abuf + clen; - packetp = abuf; + packetp = bp = abuf; ip6 = (struct ip6_hdr *)abuf; /* We really want libpcap to give us aligned packets */ if (!didwarn) { |