summaryrefslogtreecommitdiff
path: root/print-aoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'print-aoe.c')
-rw-r--r--print-aoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-aoe.c b/print-aoe.c
index c790ee2a..7dcf5aa2 100644
--- a/print-aoe.c
+++ b/print-aoe.c
@@ -350,7 +350,7 @@ aoev1_print(netdissect_options *ndo,
if (len < AOEV1_COMMON_HDR_LEN)
goto invalid;
/* Flags */
- flags = *cp & 0x0F;
+ flags = EXTRACT_8BITS(cp) & 0x0F;
ND_PRINT((ndo, ", Flags: [%s]", bittok2str(aoev1_flag_str, "none", flags)));
cp += 1;
if (! ndo->ndo_vflag)