From 7e9c480713391d72a78444ce236b80b5d5c38969 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Wed, 4 Apr 2001 00:11:06 +0000 Subject: [PATCH] Check in the diff for rev 1.11 of tcpdump.org's print-smb.c to replace freebsd.org's rev 1.2. --- contrib/tcpdump/print-smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/tcpdump/print-smb.c b/contrib/tcpdump/print-smb.c index e5a3da544fd..85783f99d23 100644 --- a/contrib/tcpdump/print-smb.c +++ b/contrib/tcpdump/print-smb.c @@ -893,7 +893,7 @@ void nbt_udp137_print(const uchar *data, int length) p += 2; } } else { - print_data(p,rdlen); + print_data(p, min(rdlen, length - ((const uchar *)p - data))); p += rdlen; } }