Fix failures setting a random password
authorAndrew Bartlett <abartlet@samba.org>
Thu, 18 Dec 2008 21:18:57 +0000 (08:18 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 18 Dec 2008 21:18:57 +0000 (08:18 +1100)
commitff98d7f9ce1213aeff3d196d8f415303974ffd77
treedc9d54a519913705c1c80ead211bf206554dc5b8
parent21702bfcdece4e71dcb4ab50e111911a5777f9a5
Fix failures setting a random password

The test in extract_pw_from_buffer was incorrect: It tested if the
first byte of the new password was 0 (a 1/256 chance for the random
passwords), not if the password was allocated.

Andrew Bartlett
source4/libcli/auth/smbencrypt.c