]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
Try marking structures as UNALIGNED.
[tcpdump] / smbutil.c
index b38d73afbce32a7cf0086a5c3928d02168af9146..fc9b3cc6f227a659fd71f3c5e4c1c766a132e9a3 100644 (file)
--- 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);