X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/2858e729edf1112bc075c8fb72a66726009b391b..d7b497cac78b6e22a66a6bae9bdec60a8044f67a:/print-rrcp.c diff --git a/print-rrcp.c b/print-rrcp.c index e57be39b..ddacf94c 100644 --- a/print-rrcp.c +++ b/print-rrcp.c @@ -125,7 +125,7 @@ rrcp_print(netdissect_options *ndo, EXTRACT_BE_U_2(cp + RRCP_AUTHKEY_OFFSET))); } if (rrcp_proto==1 && rrcp_opcode==0 && - ((*(cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_ISREPLY)){ + ((EXTRACT_U_1(cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_ISREPLY)){ ND_TCHECK_4(cp + RRCP_VENDOR_ID_OFFSET); ND_PRINT((ndo, " downlink_port=%d, uplink_port=%d, uplink_mac=%s, vendor_id=%08x ,chip_id=%04x ", EXTRACT_U_1(cp + RRCP_DOWNLINK_PORT_OFFSET),