X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/817bdfede2894481cbd3f94549eb2da58b57cc51..7029d15f148ef24bb7c6668bc640f5470d085e5a:/smbutil.c diff --git a/smbutil.c b/smbutil.c index b38d73af..fc9b3cc6 100644 --- a/smbutil.c +++ b/smbutil.c @@ -237,6 +237,7 @@ name_len(netdissect_options *ndo, return(-1); /* name goes past the end of the buffer */ ND_TCHECK2(*s, 1); s += (*s) + 1; + ND_TCHECK2(*s, 1); } return(PTR_DIFF(s, s0) + 1);