]> The Tcpdump Group git mirrors - tcpdump/commitdiff
AH: Remove a ND_TCHECK_SIZE() call
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 3 Oct 2020 08:04:25 +0000 (10:04 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 3 Oct 2020 09:36:46 +0000 (11:36 +0200)
It was the last ND_TCHECK_*() call.
Remove the only trunc label.

print-ah.c

index b9364dc3bf7b0f449ebea338094537d30079216f..a3d05544c2d786719dd95de40b982cc699f7b189 100644 (file)
@@ -46,7 +46,6 @@ ah_print(netdissect_options *ndo, const u_char *bp)
        ndo->ndo_protocol = "ah";
        ah = (const struct ah *)bp;
 
-       ND_TCHECK_SIZE(ah);
        nd_print_protocol_caps(ndo);
 /*
  * RFC4302
@@ -73,7 +72,4 @@ ah_print(netdissect_options *ndo, const u_char *bp)
        ND_PRINT("): ");
 
        return ah_hdr_len;
-trunc:
-       nd_print_trunc(ndo);
-       return -1;
 }