summaryrefslogtreecommitdiff
path: root/smbutil.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-06-16 14:25:06 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-06-16 15:21:05 +0200
commit3b0b3f0defacff248bfe0cafe0da6fcc0a13c008 (patch)
tree5572295c41f2ada208f31f2198bb428d7d366300 /smbutil.c
parent52f7baee0c7951e1356230a68fd7076181eab1e1 (diff)
downloadtcpdump-3b0b3f0defacff248bfe0cafe0da6fcc0a13c008.tar.gz
Add two EXTRACT_U_1() macro calls
Diffstat (limited to 'smbutil.c')
-rw-r--r--smbutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smbutil.c b/smbutil.c
index 0d64bd38..4fd45568 100644
--- a/smbutil.c
+++ b/smbutil.c
@@ -235,11 +235,11 @@ name_len(netdissect_options *ndo,
c = EXTRACT_U_1(s);
if ((c & 0xC0) == 0xC0)
return(2);
- while (*s) {
+ while (EXTRACT_U_1(s)) {
if (s >= maxbuf)
return(-1); /* name goes past the end of the buffer */
ND_TCHECK_1(s);
- s += (*s) + 1;
+ s += EXTRACT_U_1(s) + 1;
ND_TCHECK_1(s);
}
return(PTR_DIFF(s, s0) + 1);