X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6bb65331a5f9d35186238af0ed736a3949616bc2..e44bc94ad0969b1bf2747518dbd0ebe4608152ee:/print-sl.c diff --git a/print-sl.c b/print-sl.c index 7cac2aa4..774c6343 100644 --- a/print-sl.c +++ b/print-sl.c @@ -167,7 +167,7 @@ sliplink_print(netdissect_options *ndo, * Get it from the link layer since sl_uncompress_tcp() * has restored the IP header copy to IPPROTO_TCP. */ - lastconn = ((const struct ip *)&p[SLX_CHDR])->ip_p; + lastconn = ((const struct ip *)(p + SLX_CHDR))->ip_p; ND_PRINT((ndo, "utcp %d: ", lastconn)); if (dir == -1) { /* Direction is bogus, don't use it */