Fix for bug #771. Fix packet length for browse list reply.
authorJeremy Allison <jra@samba.org>
Wed, 5 Nov 2003 00:12:49 +0000 (00:12 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 5 Nov 2003 00:12:49 +0000 (00:12 +0000)
Jeremy.

source/nmbd/nmbd_packets.c

index 72eb1b501994732691b31406dffe7f2e89c49e65..c318689fd19fb0f69c7cfea8b3dd6d19ecec66f0 100644 (file)
@@ -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);