X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/817bdfede2894481cbd3f94549eb2da58b57cc51..c7b0738460b08e63a1bd15c88ef1f9599cd71a08:/smbutil.c?ds=inline 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);