]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ah.c
Fix spaces
[tcpdump] / print-ah.c
index 75baea2ed85577c33f7989d5a56021d1b012a104..735226f696ecdf045067460c2cb2c7ffbf0d4c85 100644 (file)
@@ -52,10 +52,7 @@ ah_print(netdissect_options *ndo, const u_char *bp)
                ND_PRINT(",sumlen=%u", sumlen);
        ND_TCHECK_4(ah + 1);
        ND_PRINT(",seq=0x%x", EXTRACT_BE_U_4(ah + 1));
-       if (!ND_TTEST_LEN(bp, sizeof(struct ah) + sumlen)) {
-               ND_PRINT("[truncated]):");
-               return -1;
-       }
+       ND_TCHECK_LEN(bp, sizeof(struct ah) + sumlen);
        ND_PRINT("): ");
 
        return sizeof(struct ah) + sumlen;