diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-24 22:48:55 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-24 22:48:55 +0100 |
commit | 39c8c55aa9ff84244cf558b9a957b78933babf0a (patch) | |
tree | d1f013767035c78b78a987cea509567603ab7783 /print-dtp.c | |
parent | c511f4c3be6273b25b0d1802eee2ede3d69b2398 (diff) | |
download | tcpdump-39c8c55aa9ff84244cf558b9a957b78933babf0a.tar.gz |
Use more ND_TCHECK_n()/ND_TTEST_n() macros
Diffstat (limited to 'print-dtp.c')
-rw-r--r-- | print-dtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-dtp.c b/print-dtp.c index e0b670fa..cd7a1845 100644 --- a/print-dtp.c +++ b/print-dtp.c @@ -71,7 +71,7 @@ dtp_print (netdissect_options *ndo, const u_char *pptr, u_int length) while (tptr < (pptr+length)) { - ND_TCHECK2(*tptr, 4); + ND_TCHECK_4(tptr); type = EXTRACT_BE_U_2(tptr); len = EXTRACT_BE_U_2(tptr + 2); /* XXX: should not be but sometimes it is, see the test captures */ |