1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Make it clear what this if statement applies to, and what it doesn't

This commit is contained in:
Andrew Bartlett 0001-01-01 00:00:00 +00:00
parent 70d9b71cea
commit 6b78e554c3

View File

@ -964,6 +964,7 @@ BOOL pdb_set_plaintext_pw_only (SAM_ACCOUNT *sampass, const char *password)
if (password) {
if (sampass->private.plaintext_pw!=NULL)
memset(sampass->private.plaintext_pw,'\0',strlen(sampass->private.plaintext_pw)+1);
sampass->private.plaintext_pw = talloc_strdup(sampass->mem_ctx, password);
if (!sampass->private.plaintext_pw) {