]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
More EXTRACT_8BITS(), more ND_TCHECK_nBITS(), other cleanups.
[tcpdump] / smbutil.c
index 847979e40e98ac41d9af6abc80c1cd2e745f8423..d18a140f5ca28020382aebf56dd26b702cdae4f8 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -685,8 +685,10 @@ smb_fdata1(netdissect_options *ndo,
          {
            int l = atoi(fmt + 1);
            ND_TCHECK2(*buf, l);
-           while (l--)
-               ND_PRINT((ndo, "%02x", *buf++));
+           while (l--) {
+               ND_PRINT((ndo, "%02x", EXTRACT_8BITS(buf)));
+               buf++;
+           }
            fmt++;
            while (isdigit((unsigned char)*fmt))
                fmt++;