X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/0aef9cda5781e238251b7b252efe11e163250e48..refs/pull/482/head:/print-eap.c diff --git a/print-eap.c b/print-eap.c index 5c623dc5..4572c8a0 100644 --- a/print-eap.c +++ b/print-eap.c @@ -21,15 +21,13 @@ * */ -#define NETDISSECT_REWORKED #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include #include "netdissect.h" -#include "interface.h" #include "extract.h" #define EAP_FRAME_TYPE_PACKET 0 @@ -193,8 +191,7 @@ eap_print(netdissect_options *ndo, *(tptr+1), len)); - if (!ND_TTEST2(*tptr, len)) - goto trunc; + ND_TCHECK2(*tptr, len); if (type <= 2) { /* For EAP_REQUEST and EAP_RESPONSE only */ subtype = *(tptr+4);