When using plaintext ucs2 passwords clistr_push calls ucs2_align, which causes
authorJeremy Allison <jra@samba.org>
Fri, 4 Apr 2008 22:28:14 +0000 (15:28 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 4 Apr 2008 22:28:14 +0000 (15:28 -0700)
commit1e7e7d86a1ae1cd2c3cc3de9f36b7326ad249b82
treed27d9ab3cba60bfadde6e6f129298acf68e8834d
parent624371ce32a7c0816963745059e743e5b3e92e2a
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