git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
501dd6f
)
s3: Simplify pdb_set_plaintext_passwd: memcpy deals fine with 0 bytes
author
Volker Lendecke
<vl@samba.org>
Mon, 14 Dec 2009 17:44:38 +0000
(18:44 +0100)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 25 Jan 2010 11:41:55 +0000
(12:41 +0100)
source3/passdb/pdb_get_set.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_get_set.c
b/source3/passdb/pdb_get_set.c
index a77ea07ed619ba8b5cb2d8df791c451f4cab8900..a98741222d8cf09a6aa2e0bcd2f592e1db5c6131 100644
(file)
--- a/
source3/passdb/pdb_get_set.c
+++ b/
source3/passdb/pdb_get_set.c
@@
-1057,11
+1057,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;
}