summaryrefslogtreecommitdiff
path: root/print-llc.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-04 22:45:01 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-05 10:45:44 +0100
commit03a2d9c4c1e360def4f9d0473f9b378ef2f14431 (patch)
treea4c461c32a90c3b7b671c0b15edc70ac18be5a36 /print-llc.c
parent7e3467df250235e68fea65320a89a5116da85be2 (diff)
downloadtcpdump-03a2d9c4c1e360def4f9d0473f9b378ef2f14431.tar.gz
Use more the EXTRACT_U_1() macro (47/n)
In: if (... *(p) ...) ...
Diffstat (limited to 'print-llc.c')
-rw-r--r--print-llc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-llc.c b/print-llc.c
index 3673ef8d..d73ac847 100644
--- a/print-llc.c
+++ b/print-llc.c
@@ -372,7 +372,7 @@ llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen,
ND_DEFAULTPRINT((const u_char *)p, caplen);
return (hdrlen);
}
- if (*p == LLC_XID_FI) {
+ if (EXTRACT_U_1(p) == LLC_XID_FI) {
if (caplen < 3 || length < 3) {
ND_PRINT((ndo, "[|llc]"));
if (caplen > 0)