summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_get_set.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-25 14:18:11 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-25 14:18:11 +0000
commit1f5a153a6f5da9e6588d29fc27f1476dba9ba4ca (patch)
tree9b4ad5501956f565b58ff429cf6711bbb8f2b6a3 /source3/passdb/pdb_get_set.c
parent284dd066a8b848d8c2d93089ed9991647b7db486 (diff)
downloadsamba-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)
Diffstat (limited to 'source3/passdb/pdb_get_set.c')
-rw-r--r--source3/passdb/pdb_get_set.c1
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) {