X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b01cc24ce4d026d06521e302b0bbd307a74ea7cb..41dbcba30b824744612ff4ee3b151083464b4000:/print-smb.c diff --git a/print-smb.c b/print-smb.c index 85e69fa0..247b97f4 100644 --- a/print-smb.c +++ b/print-smb.c @@ -363,8 +363,9 @@ print_trans(netdissect_options *ndo, f4 = "|Data "; } - smb_fdata(ndo, words + 1, f1, min(words + 1 + 2 * words[0], maxbuf), - unicodestr); + smb_fdata(ndo, words + 1, f1, + min(words + 1 + 2 * EXTRACT_U_1(words), maxbuf), + unicodestr); ND_TCHECK_2(data1); bcc = EXTRACT_LE_U_2(data1);