X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/409ffe94529df3d8bb8258bf99586f821756cb29..1fb50928ce27360c1c987312774f686b23c69b51:/print-otv.c diff --git a/print-otv.c b/print-otv.c index f276441f..5a82752c 100644 --- a/print-otv.c +++ b/print-otv.c @@ -64,7 +64,7 @@ otv_print(netdissect_options *ndo, const u_char *bp, u_int len) ND_TCHECK(*bp); bp += 1; - ether_print(ndo, bp, len - 8, len - 8, NULL, NULL); + ether_print(ndo, bp, len - 8, ndo->ndo_snapend - bp, NULL, NULL); return; trunc: