diff options
-rw-r--r-- | print-smb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/print-smb.c b/print-smb.c index 247b97f4..f6914913 100644 --- a/print-smb.c +++ b/print-smb.c @@ -945,7 +945,9 @@ nbt_tcp_print(netdissect_options *ndo, if (caplen < 4) goto trunc; maxbuf = data + caplen; + ND_TCHECK_1(data); type = EXTRACT_U_1(data); + ND_TCHECK_2(data + 2); nbt_len = EXTRACT_BE_U_2(data + 2); length -= 4; caplen -= 4; |