summaryrefslogtreecommitdiffstats
path: root/source/nmbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-04-19 22:40:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:30 -0500
commit2d80a96120a5fe2fe726f00746d36d85044c4bdb (patch)
tree5b0251fdb656623c814357fb6e1dd98366906175 /source/nmbd
parent3b24dae9e73b244540a68b631b428a4d0f57440b (diff)
downloadsamba-2d80a96120a5fe2fe726f00746d36d85044c4bdb.tar.gz
samba-2d80a96120a5fe2fe726f00746d36d85044c4bdb.tar.xz
samba-2d80a96120a5fe2fe726f00746d36d85044c4bdb.zip
r22391: Looks bigger than it is. Make "inbuf" available
to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy.
Diffstat (limited to 'source/nmbd')
-rw-r--r--source/nmbd/nmbd_packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_packets.c b/source/nmbd/nmbd_packets.c
index 87a38b9d2a1..d34beb7ff61 100644
--- a/source/nmbd/nmbd_packets.c
+++ b/source/nmbd/nmbd_packets.c
@@ -1886,7 +1886,7 @@ BOOL send_mailslot(BOOL unique, const char *mailslot,char *buf, size_t len,
/* Setup the smb part. */
ptr -= 4; /* XXX Ugliness because of handling of tcp SMB length. */
memcpy(tmp,ptr,4);
- set_message(ptr,17,strlen(mailslot) + 1 + len,True);
+ set_message(NULL,ptr,17,strlen(mailslot) + 1 + len,True);
memcpy(ptr,tmp,4);
SCVAL(ptr,smb_com,SMBtrans);