s3:passdb: always copy the history in pdb_set_plaintext_passwd()
commit966192ee16d6802da5c2b046d2488ddd1a7ec960
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Feb 2014 19:16:26 +0000 (26 20:16 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 25 Nov 2014 06:25:44 +0000 (25 07:25 +0100)
treeb2a9e8f1779a7db5e559216ad7c0eeac565318af
parente9bea35b7dbb516ade273cea1c4273299114aa41
s3:passdb: always copy the history in pdb_set_plaintext_passwd()

We should not write to memory marked as const
(returned from pdb_get_pw_history())!

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/passdb/pdb_get_set.c