diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-28 22:51:30 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-28 22:51:30 +0100 |
commit | dcca20dd391f15c5c63d3b033fb7d7749bb1d8cd (patch) | |
tree | 592ae4ab0cfe127867cdab7560dc95febb4a2052 /smbutil.c | |
parent | dde3aa997587ad5423318ca3a2de56096dc15aa2 (diff) | |
download | tcpdump-dcca20dd391f15c5c63d3b033fb7d7749bb1d8cd.tar.gz |
Use more the ND_TCHECK_1() macro
Diffstat (limited to 'smbutil.c')
-rw-r--r-- | smbutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -229,16 +229,16 @@ name_len(netdissect_options *ndo, if (s >= maxbuf) return(-1); /* name goes past the end of the buffer */ - ND_TCHECK2(*s, 1); + ND_TCHECK_1(s); c = *s; if ((c & 0xC0) == 0xC0) return(2); while (*s) { if (s >= maxbuf) return(-1); /* name goes past the end of the buffer */ - ND_TCHECK2(*s, 1); + ND_TCHECK_1(s); s += (*s) + 1; - ND_TCHECK2(*s, 1); + ND_TCHECK_1(s); } return(PTR_DIFF(s, s0) + 1); |