diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_get_set.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/passdb/pdb_get_set.c b/source3/passdb/pdb_get_set.c index 149dde0802..968da9d8d1 100644 --- a/source3/passdb/pdb_get_set.c +++ b/source3/passdb/pdb_get_set.c @@ -1058,11 +1058,8 @@ bool pdb_set_plaintext_passwd(struct samu *sampass, const char *plaintext) return False; } - /* And copy it into the new buffer. */ - if (current_history_len) { - memcpy(new_history, pwhistory, - current_history_len*PW_HISTORY_ENTRY_LEN); - } + memcpy(new_history, pwhistory, + current_history_len*PW_HISTORY_ENTRY_LEN); pwhistory = new_history; } |