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)
committerJeremy Allison <jra@samba.org>
Mon, 14 Mar 2011 23:12:31 +0000 (16:12 -0700)
commite59a950c049679f0394ea41b463dbb9837eb5e63
treec03c1183b9d731ca33bb1f37347edd9f757314cc
parent431853c84644c02e6bff1b325af5e94d3b1eacc6
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.
source3/lib/charcnv.c