diff options
Diffstat (limited to 'print-802_11.c')
-rw-r--r-- | print-802_11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-802_11.c b/print-802_11.c index 82480f32..59d1f63d 100644 --- a/print-802_11.c +++ b/print-802_11.c @@ -1589,7 +1589,7 @@ handle_action(netdissect_options *ndo, } else { ND_PRINT((ndo, " (%s): ", etheraddr_string(ndo, src))); } - switch (p[0]) { + switch (EXTRACT_U_1(p)) { case 0: ND_PRINT((ndo, "Spectrum Management Act#%d", EXTRACT_U_1(p + 1))); break; case 1: ND_PRINT((ndo, "QoS Act#%d", EXTRACT_U_1(p + 1))); break; case 2: ND_PRINT((ndo, "DLS Act#%d", EXTRACT_U_1(p + 1))); break; |