diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-22 15:27:53 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-22 16:02:02 +0100 |
commit | 01cd3621f1ded1d0ec5cb55a87bcc3d735d59422 (patch) | |
tree | 54de5fc7f7de5c243023aea147540678cf2f44d1 /print-ppp.c | |
parent | 6d78d5e47c7ba6d38dcf2eab9a6f5d481c1972c8 (diff) | |
download | tcpdump-01cd3621f1ded1d0ec5cb55a87bcc3d735d59422.tar.gz |
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (22/n)
In ND_PRINT() macro calls, *p++.
Partial list.
Diffstat (limited to 'print-ppp.c')
-rw-r--r-- | print-ppp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/print-ppp.c b/print-ppp.c index 163de1df..0a8a9649 100644 --- a/print-ppp.c +++ b/print-ppp.c @@ -883,7 +883,8 @@ handle_chap(netdissect_options *ndo, ND_PRINT((ndo, ", Value ")); for (i = 0; i < val_size; i++) { ND_TCHECK(*p); - ND_PRINT((ndo, "%02x", *p++)); + ND_PRINT((ndo, "%02x", EXTRACT_8BITS(p))); + p++; } name_size = len - (p - p0); ND_PRINT((ndo, ", Name ")); |