summaryrefslogtreecommitdiff
path: root/smbutil.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-28 22:51:30 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-28 22:51:30 +0100
commitdcca20dd391f15c5c63d3b033fb7d7749bb1d8cd (patch)
tree592ae4ab0cfe127867cdab7560dc95febb4a2052 /smbutil.c
parentdde3aa997587ad5423318ca3a2de56096dc15aa2 (diff)
downloadtcpdump-dcca20dd391f15c5c63d3b033fb7d7749bb1d8cd.tar.gz
Use more the ND_TCHECK_1() macro
Diffstat (limited to 'smbutil.c')
-rw-r--r--smbutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smbutil.c b/smbutil.c
index c60d408a..38bd76de 100644
--- a/smbutil.c
+++ b/smbutil.c
@@ -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);