]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
Fix mkdep invocations.
[tcpdump] / smbutil.c
index c6c065243217abdab55451570aef6d1d92d69855..38bd76de1be51d857409e2513b13610c2611a1e8 100644 (file)
--- 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);
 
@@ -637,7 +637,7 @@ smb_fdata1(netdissect_options *ndo,
 
            ND_TCHECK(*buf);
            if (*buf != 4 && *buf != 2) {
-               ND_PRINT((ndo, "Error! ASCIIZ buffer of type %u", *buf));
+               ND_PRINT((ndo, "Error! ASCIIZ buffer of type %u", EXTRACT_U_1(buf)));
                return maxbuf;  /* give up */
            }
            len = 0;