summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-07-21 12:22:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:14 -0500
commit5cc398d23dcbc615341a74f42c9b2fff9bd00062 (patch)
tree46acbd203286cb55f727ecdc15be57dd356d004a
parent0804e231e40e700bb16e400a1eda4d87d4bbc432 (diff)
downloadsamba-5cc398d23dcbc615341a74f42c9b2fff9bd00062.tar.gz
samba-5cc398d23dcbc615341a74f42c9b2fff9bd00062.tar.bz2
samba-5cc398d23dcbc615341a74f42c9b2fff9bd00062.zip
r1560: Not that anybody uses this stuff (yet...), but at least get it correct :-)
When sending a mailslot datagram, get the packet length correction correct. Volker (This used to be commit 530e7f09aea22f5782af0c6b333e15e01660b34a)
-rw-r--r--source3/libsmb/clidgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index c4675f1938..ba65c46d16 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/libsmb/clidgram.c
@@ -63,7 +63,7 @@ int cli_send_mailslot(int dgram_sock, BOOL unique, const char *mailslot,
/* Setup the smb part. */
ptr -= 4; /* XXX Ugliness because of handling of tcp SMB length. */
memcpy(tmp,ptr,4);
- set_message(ptr,17,17 + len,True);
+ set_message(ptr,17,strlen(mailslot) + 1 + len,True);
memcpy(ptr,tmp,4);
SCVAL(ptr,smb_com,SMBtrans);