summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-05 00:12:49 +0000
committerJeremy Allison <jra@samba.org>2003-11-05 00:12:49 +0000
commit536f72913e6102ac06196f919cc0cc2060532f37 (patch)
tree04a69e44b4f6e5fbe048ef96dc293a56399e6011
parentf46e42c69d270c93e3732d2bb28883f575903874 (diff)
downloadsamba-536f72913e6102ac06196f919cc0cc2060532f37.tar.gz
samba-536f72913e6102ac06196f919cc0cc2060532f37.tar.bz2
samba-536f72913e6102ac06196f919cc0cc2060532f37.zip
Fix for bug #771. Fix packet length for browse list reply.
Jeremy. (This used to be commit d085c94dacffbe8199e83315340e4f60d1f0b9a5)
-rw-r--r--source3/nmbd/nmbd_packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c
index 72eb1b5019..c318689fd1 100644
--- a/source3/nmbd/nmbd_packets.c
+++ b/source3/nmbd/nmbd_packets.c
@@ -1835,7 +1835,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,23 + len,True);
+ set_message(ptr,17,strlen(mailslot) + 1 + len,True);
memcpy(ptr,tmp,4);
SCVAL(ptr,smb_com,SMBtrans);