Fix bug #8005 - smbtorture4 BASE-TCONDEV fails when tested on Samba
authorJeremy Allison <jra@samba.org>
Mon, 14 Mar 2011 23:12:31 +0000 (16:12 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 14 Jun 2011 10:56:03 +0000 (12:56 +0200)
commit83cd9523bd24b907079392d3cd2cc04859583c35
tree70f3d33b4abd76255268a22433201f39a27e7881
parent8a532bbba6cd0ebc269ffa4b02d8bbb1927f1ba5
Fix bug #8005 - smbtorture4 BASE-TCONDEV fails when tested on Samba

When pulling non-aligned ucs2 strings, we neglected to add in the
pad byte to the buffer length we've eaten. This caused the device
string in TCONX (which seems to be one of the few places that uses
non-aligned ucs2 strings) to be incorrectly read.

Volker please check.

Jeremy.
(cherry picked from commit e59a950c049679f0394ea41b463dbb9837eb5e63)
(cherry picked from commit 9cddb8e6df6cc47e22a572af164deaffc6e1a774)
source3/lib/charcnv.c