diff options
author | Jeremy Allison <jra@samba.org> | 2003-11-05 00:12:53 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-11-05 00:12:53 +0000 |
commit | 0c94d59205c92771b5091480b774794aefbe6b0c (patch) | |
tree | 1f5e3ee873de037267c995946f62013da15f7f58 | |
parent | 7b64564fbeb32d4b1cd0f01c3cdb35953c9c4cff (diff) | |
download | samba-0c94d59205c92771b5091480b774794aefbe6b0c.tar.gz samba-0c94d59205c92771b5091480b774794aefbe6b0c.tar.bz2 samba-0c94d59205c92771b5091480b774794aefbe6b0c.zip |
Fix for bug #771. Fix packet length for browse list reply.
Jeremy.
(This used to be commit dfea28a7731a0625e37ac43658f21b25e2fcce21)
-rw-r--r-- | source3/nmbd/nmbd_packets.c | 2 |
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); |