* setlsapwd.cc (setlsapwd): Fix conditional expression after breaking

it on 2014-01-23.
This commit is contained in:
Corinna Vinschen 2014-02-18 14:53:38 +00:00
parent a8cf6887a2
commit 4413149388
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-02-18 Corinna Vinschen <corinna@vinschen.de>
* setlsapwd.cc (setlsapwd): Fix conditional expression after breaking
it on 2014-01-23.
2014-02-17 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (ldap_abandon): Import.

View File

@ -70,7 +70,7 @@ setlsapwd (const char *passwd, const char *username)
if (data_buf)
RtlInitUnicodeString (&data, data_buf);
/* First try it locally. Works for admin accounts. */
if (!(lsa = lsa_open_policy (NULL, POLICY_CREATE_SECRET)))
if ((lsa = lsa_open_policy (NULL, POLICY_CREATE_SECRET)))
{
NTSTATUS status = LsaStorePrivateData (lsa, &key,
data.Length ? &data : NULL);