]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Use more the ND_TCHECK_1() macro
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 15 Aug 2021 11:04:42 +0000 (13:04 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 15 Aug 2021 11:04:42 +0000 (13:04 +0200)
This is a follow-up to 7b7b84716e604abd8bd92cee75e6385cab6ce3dc.

print-ether.c

index da95862b3c0b5150a4b324f0439caf4eb828f395..3aeda8f741669bc04e0a578955e1c50272f433f9 100644 (file)
@@ -566,7 +566,7 @@ ethertype_print(netdissect_options *ndo,
                }
                /* At least one byte is required */
                /* FIXME: Reference for this byte? */
-               ND_TCHECK_LEN(p, 1);
+               ND_TCHECK_1(p);
                isoclns_print(ndo, p + 1, length - 1);
                return(1);