X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/da20bc56d6100b5275d6f85c4a25bac1dab4e57e..de0c7fc746c37eb83e15a6890d30dc6f608e9d76:/print-cfm.c diff --git a/print-cfm.c b/print-cfm.c index e764e1dc..2a2485e9 100644 --- a/print-cfm.c +++ b/print-cfm.c @@ -529,7 +529,7 @@ cfm_print(netdissect_options *ndo, cfm_tlv_header = (const struct cfm_tlv_header_t *)tptr; /* Enough to read the tlv type ? */ - ND_TCHECK2(*tptr, 1); + ND_TCHECK_1(tptr); cfm_tlv_type=cfm_tlv_header->type; ND_PRINT((ndo, "\n\t%s TLV (0x%02x)", @@ -588,7 +588,7 @@ cfm_print(netdissect_options *ndo, ND_PRINT((ndo, ", Vendor: %s (%u), Sub-Type %u", tok2str(oui_values,"Unknown", EXTRACT_BE_U_3(tptr)), EXTRACT_BE_U_3(tptr), - *(tptr + 3))); + EXTRACT_U_1(tptr + 3))); hexdump = TRUE; break;