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 | 6b78e554c3dd3c98bff7dbd1d3715a9b7e405b8d (patch) | |
tree | 5fecef37f6f2b46a7425b3501be31b99f20843c6 /source/passdb | |
parent | 70d9b71ceaeba95712fa61e601376ff5cc8e7714 (diff) | |
download | samba-6b78e554c3dd3c98bff7dbd1d3715a9b7e405b8d.tar.gz samba-6b78e554c3dd3c98bff7dbd1d3715a9b7e405b8d.tar.xz samba-6b78e554c3dd3c98bff7dbd1d3715a9b7e405b8d.zip |
Make it clear what this if statement applies to, and what it doesn't
Diffstat (limited to 'source/passdb')
-rw-r--r-- | source/passdb/pdb_get_set.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/passdb/pdb_get_set.c b/source/passdb/pdb_get_set.c index 0c338f317ec..07474693ddf 100644 --- a/source/passdb/pdb_get_set.c +++ b/source/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) { |