]> The Tcpdump Group git mirrors - tcpdump/commitdiff
STP: Replace ND_TCHECK call(s) by ND_TCHECK_SIZE call(s)
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 23 Jan 2018 15:59:51 +0000 (16:59 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 23 Jan 2018 15:59:51 +0000 (16:59 +0100)
print-stp.c

index 95138d3b58ad27a7bdef960579214f796e6c57aa..0ccfc411c2b48b3cb5a1110268a253432acf80ee 100644 (file)
@@ -273,7 +273,7 @@ stp_print_mstp_bpdu(netdissect_options *ndo, const struct stp_bpdu_ *stp_bpdu,
            stp_print_bridge_id((const u_char *)&stp_bpdu->root_id),
            EXTRACT_BE_U_4(stp_bpdu->root_path_cost));
 
-    ND_TCHECK(stp_bpdu->bridge_id);
+    ND_TCHECK_SIZE(&stp_bpdu->bridge_id);
     ND_PRINT("\n\tCIST regional-root-id %s, ",
            stp_print_bridge_id((const u_char *)&stp_bpdu->bridge_id));