When using plaintext ucs2 passwords clistr_push calls ucs2_align, which causes
authorJeremy Allison <jra@samba.org>
Fri, 4 Apr 2008 22:28:18 +0000 (15:28 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 4 Apr 2008 22:28:18 +0000 (15:28 -0700)
commita11835a3c01aaa6e0a59a78ff7862a8a3910705d
treee2794fb6d6db721d808a9afe9fc9e9e3cdf9feb6
parentbfc99dcfe6f592477b8f62adbb1e1a7baec65dcd
When using plaintext ucs2 passwords clistr_push calls ucs2_align, which causes
the space taken by the unicode password to be one byte too
long (as we're on an odd byte boundary here). Reduce the
count by 1 to cope with this. Fixes smbclient against NetApp
servers which can't cope. Fix from
bryan.kolodziej@allenlund.com in bug #3840.
Jeremy.
source/libsmb/cliconnect.c