summaryrefslogtreecommitdiff
path: root/print-pppoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-pppoe.c')
-rw-r--r--print-pppoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-pppoe.c b/print-pppoe.c
index 74ebcbc7..39d41700 100644
--- a/print-pppoe.c
+++ b/print-pppoe.c
@@ -175,7 +175,7 @@ pppoe_print(netdissect_options *ndo, register const u_char *bp, u_int length)
/* Print hex, not fast to abuse printf but this doesn't get used much */
ND_PRINT((ndo, " [%s 0x", tok2str(pppoetag2str, "TAG-0x%x", tag_type)));
for (v=p; v<p+tag_len; v++) {
- ND_PRINT((ndo, "%02X", *v));
+ ND_PRINT((ndo, "%02X", EXTRACT_U_1(v)));
}
ND_PRINT((ndo, "]"));
}