X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/5b0329a9e755e860c3ac8cd6cf383f58261e445d..00ac5be4b6d44af1750c93ff30656972a6269ff0:/print-ppi.c diff --git a/print-ppi.c b/print-ppi.c index b3b71f27..38873c84 100644 --- a/print-ppi.c +++ b/print-ppi.c @@ -21,10 +21,11 @@ static inline void ppi_header_print(struct netdissect_options *ndo, const u_char *bp, u_int length) { const ppi_header_t *hdr; - hdr = (const ppi_header_t *)bp; u_int32_t dlt; u_int16_t len; + hdr = (const ppi_header_t *)bp; + len = EXTRACT_16BITS(&hdr->ppi_len); dlt = EXTRACT_32BITS(&hdr->ppi_dlt);