X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f085c93f59fb2332e09f3da20eef5fb2bbd04431..de0c7fc746c37eb83e15a6890d30dc6f608e9d76:/smbutil.c 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);