summaryrefslogtreecommitdiff
path: root/source/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-17 13:43:01 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-17 13:43:01 +0000
commit71c6678cd7ffe30a5da27766cf99147e1921feae (patch)
tree5b394f3c24eb27f9dfd7a6277e93cd49b03d468a /source/lib
parentf9fbcad42ec20da56466054e1984e391d03b3204 (diff)
downloadsamba-71c6678cd7ffe30a5da27766cf99147e1921feae.tar.gz
smbparse.c smb.h :
uni_max_len and uni_str_len are the other way round, in UNIHDR. util.c : increased the show_msg() data size from 256 bytes to 512 bytes: the LSA SAM Logon response can be about 500 bytes long. pipenetlog.c : forgot to set the authoritative field to 1.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 0a8540b48b4..a82713a0d84 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -1182,9 +1182,9 @@ void show_msg(char *buf)
DEBUG(5,("smb_bcc=%d\n",bcc));
if (DEBUGLEVEL < 10)
return;
- for (i = 0; i < MIN(bcc, 256); i += 16)
+ for (i = 0; i < MIN(bcc, 512); i += 16)
{
- for (j = 0; j < 16 && i+j < MIN(bcc,256); j++)
+ for (j = 0; j < 16 && i+j < MIN(bcc,512); j++)
{
DEBUG(10,("%2X ",CVAL(smb_buf(buf),i+j)));
@@ -1193,7 +1193,7 @@ void show_msg(char *buf)
}
DEBUG(10,(" "));
- for (j = 0; j < 16 && i+j < MIN(bcc,256); j++)
+ for (j = 0; j < 16 && i+j < MIN(bcc,512); j++)
{
unsigned char c = CVAL(smb_buf(buf),i+j);
if (c < 32 || c > 128) c = '.';