summaryrefslogtreecommitdiff
path: root/print-ppp.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-ppp.c')
-rw-r--r--print-ppp.c3
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 "));