]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-smb.c
Use more the ND_TCHECK_1() macro
[tcpdump] / print-smb.c
index a9b6a4a099e667870acf7a5e0d8673df90e94345..3640b8764dbe58150a8203528dfb4dec0a2883b1 100644 (file)
@@ -837,7 +837,8 @@ print_smb(netdissect_options *ndo,
            ND_PRINT((ndo, "NTError = %s\n", nt_errstr(nterror)));
     } else {
        if (buf[5])
-           ND_PRINT((ndo, "SMBError = %s\n", smb_errstr(buf[5], EXTRACT_LE_U_2(buf + 7))));
+           ND_PRINT((ndo, "SMBError = %s\n", smb_errstr(EXTRACT_U_1(buf + 5),
+                     EXTRACT_LE_U_2(buf + 7))));
     }
 
     smboffset = 32;