diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-25 14:18:11 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-25 14:18:11 +0000 |
commit | 1f5a153a6f5da9e6588d29fc27f1476dba9ba4ca (patch) | |
tree | 9b4ad5501956f565b58ff429cf6711bbb8f2b6a3 | |
parent | 284dd066a8b848d8c2d93089ed9991647b7db486 (diff) | |
download | samba-1f5a153a6f5da9e6588d29fc27f1476dba9ba4ca.tar.gz samba-1f5a153a6f5da9e6588d29fc27f1476dba9ba4ca.tar.bz2 samba-1f5a153a6f5da9e6588d29fc27f1476dba9ba4ca.zip |
Make it clear what this if statement applies to, and what it doesn't
(This used to be commit 6b78e554c3dd3c98bff7dbd1d3715a9b7e405b8d)
-rw-r--r-- | source3/passdb/pdb_get_set.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c index 0c338f317e..07474693dd 100644 --- a/source3/passdb/pdb_get_set.c +++ b/source3/passdb/pdb_get_set.c @@ -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) { |