smbd: Fix file name buflen and padding in notify repsonse
authorJeremy Allison <jra@samba.org>
Fri, 16 Oct 2015 22:13:47 +0000 (15:13 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 17 Oct 2015 23:56:41 +0000 (01:56 +0200)
commit7c483690ac6ed007798aeeb7b8549c9d55877e56
tree2919ca31f5ce00b7985be3793e2ca39113e18785
parent2881679e3ecbaf07cdd82ba65af8d55e5e3be800
smbd: Fix file name buflen and padding in notify repsonse

The array is uint16, doubling the file name length consumes twice the space
required.

As we're hand assembling this as a series of concatinated individual data_blobs,
we must take care to ensure the correct 4 byte alignment that was
being masked by the previous doubling of the filename length.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10634

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sun Oct 18 01:56:41 CEST 2015 on sn-devel-104
librpc/idl/notify.idl
source3/smbd/notify.c