Fix bug #8005 - smbtorture4 BASE-TCONDEV fails when tested on Samba
commit75ded3491c11495cc106ba4f9f03a043a685d319
authorJeremy Allison <jra@samba.org>
Mon, 14 Mar 2011 23:12:31 +0000 (14 16:12 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 14 Mar 2011 23:14:41 +0000 (14 16:14 -0700)
tree17ffd757f7e87d1869d6358cb013a0b7fa1c7bde
parent059ee6313fd28e965f62b0ec3ebf583d8aa06566
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)
source3/lib/charcnv.c