summaryrefslogtreecommitdiff
path: root/print-eap.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-27 18:28:49 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-27 18:28:49 +0100
commit99227bf55234b457b8e5ac39992a6db6db388939 (patch)
tree81b40951545cdc27d6a20d8b714e11ac395e49fd /print-eap.c
parent2858e729edf1112bc075c8fb72a66726009b391b (diff)
downloadtcpdump-99227bf55234b457b8e5ac39992a6db6db388939.tar.gz
Use more the EXTRACT_U_1() macro (30/n)
Diffstat (limited to 'print-eap.c')
-rw-r--r--print-eap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-eap.c b/print-eap.c
index bfc678f5..924157de 100644
--- a/print-eap.c
+++ b/print-eap.c
@@ -243,7 +243,7 @@ eap_print(netdissect_options *ndo,
bittok2str(eap_tls_flags_values, "none", EXTRACT_U_1((tptr + 5))),
EXTRACT_U_1(tptr + 5)));
- if (EAP_TLS_EXTRACT_BIT_L(*(tptr+5))) {
+ if (EAP_TLS_EXTRACT_BIT_L(EXTRACT_U_1(tptr + 5))) {
ND_TCHECK_4(tptr + 6);
ND_PRINT((ndo, " len %u", EXTRACT_BE_U_4(tptr + 6)));
}
@@ -257,7 +257,7 @@ eap_print(netdissect_options *ndo,
bittok2str(eap_tls_flags_values, "none", EXTRACT_U_1((tptr + 5))),
EXTRACT_U_1(tptr + 5)));
- if (EAP_TLS_EXTRACT_BIT_L(*(tptr+5))) {
+ if (EAP_TLS_EXTRACT_BIT_L(EXTRACT_U_1(tptr + 5))) {
ND_TCHECK_4(tptr + 6);
ND_PRINT((ndo, " len %u", EXTRACT_BE_U_4(tptr + 6)));
}