diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-18 11:14:27 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-05-18 11:16:21 +0200 |
commit | a1042c21e59c1543dba39a895a597f5d9e5b2572 (patch) | |
tree | c6dcb8f73dac1c51f4aa6fc9ed58788cbb5a94ad /print-ah.c | |
parent | 95e10b20266d982dd1ee978f47b8fe17fbfee475 (diff) | |
download | tcpdump-a1042c21e59c1543dba39a895a597f5d9e5b2572.tar.gz |
Use more the nd_print_trunc() call
Update the output of a test accordingly.
Diffstat (limited to 'print-ah.c')
-rw-r--r-- | print-ah.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |