]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RIPng: Use more ND_TCHECK_SIZE() macros
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 24 Jan 2018 10:35:13 +0000 (11:35 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 24 Jan 2018 10:35:13 +0000 (11:35 +0100)
print-ripng.c

index 4e87946f9a10815c1eb2952f51bf7261d1fe6c02..a253655ef3319f5a2b8b0847f2955a516cf55faa 100644 (file)
@@ -128,7 +128,7 @@ ripng_print(netdissect_options *ndo, const u_char *dat, unsigned int length)
                length_left -= (sizeof(struct rip6) - sizeof(struct netinfo6));
                j = length_left / sizeof(*ni);
                if (j == 1) {
                length_left -= (sizeof(struct rip6) - sizeof(struct netinfo6));
                j = length_left / sizeof(*ni);
                if (j == 1) {
-                       ND_TCHECK(rp->rip6_nets);
+                       ND_TCHECK_SIZE(rp->rip6_nets);
                        if (EXTRACT_U_1(rp->rip6_nets->rip6_metric) == HOPCNT_INFINITY6
                            &&  IN6_IS_ADDR_UNSPECIFIED(&rp->rip6_nets->rip6_dest)) {
                                ND_PRINT(" ripng-req dump");
                        if (EXTRACT_U_1(rp->rip6_nets->rip6_metric) == HOPCNT_INFINITY6
                            &&  IN6_IS_ADDR_UNSPECIFIED(&rp->rip6_nets->rip6_dest)) {
                                ND_PRINT(" ripng-req dump");