]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (15/n)
[tcpdump] / smbutil.c
index 71ad60d9b491bee81f9b995f93c484eead8468e3..847979e40e98ac41d9af6abc80c1cd2e745f8423 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -133,7 +133,8 @@ name_interpret(netdissect_options *ndo,
     if (in >= maxbuf)
        return(-1);     /* name goes past the end of the buffer */
     ND_TCHECK2(*in, 1);
-    len = (*in++) / 2;
+    len = EXTRACT_8BITS(in) / 2;
+    in++;
 
     *out=0;