X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3a7639e545c0543bcec19c4321dd3ba397fbe6fa..1a04b92e365f5ed01ca38619b41bcc4fc9cbd63c:/print-eap.c diff --git a/print-eap.c b/print-eap.c index 30c48616..827bf672 100644 --- a/print-eap.c +++ b/print-eap.c @@ -148,7 +148,7 @@ static const struct tok eap_aka_subtype_values[] = { */ void eap_print(netdissect_options *ndo, - register const u_char *cp, + const u_char *cp, u_int length) { const struct eap_frame_t *eap; @@ -192,7 +192,7 @@ eap_print(netdissect_options *ndo, EXTRACT_U_1((tptr + 1)), len)); - ND_TCHECK2(*tptr, len); + ND_TCHECK_LEN(tptr, len); if (type <= 2) { /* For EAP_REQUEST and EAP_RESPONSE only */ ND_TCHECK_1(tptr + 4);