summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-11-13 03:20:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:25:31 -0500
commit8539fb3aaa15e67a0bfc91785935fdffb9ed5ea3 (patch)
tree8c4cada2a24355e669cb93a2d8e30337f5a688d1 /source4
parent5a6288f45891be30bd8e22978f61faf487214de6 (diff)
downloadsamba-8539fb3aaa15e67a0bfc91785935fdffb9ed5ea3.tar.gz
samba-8539fb3aaa15e67a0bfc91785935fdffb9ed5ea3.tar.bz2
samba-8539fb3aaa15e67a0bfc91785935fdffb9ed5ea3.zip
r19682: Fix comments.
Andrew Bartlett (This used to be commit 4c349f44f8a018e1ad6ed8e92c5083abc4979324)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/lsa/dcesrv_lsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 099464042d..6dce61506d 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -2606,13 +2606,13 @@ static NTSTATUS lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLOC_CTX *
if (!r->out.old_val) {
return NT_STATUS_NO_MEMORY;
}
- /* Decrypt */
prior_val = ldb_msg_find_ldb_val(res[0], "priorValue");
if (prior_val && prior_val->length) {
secret.data = prior_val->data;
secret.length = prior_val->length;
+ /* Encrypt */
crypt_secret = sess_encrypt_blob(mem_ctx, &secret, &session_key);
if (!crypt_secret.length) {
return NT_STATUS_NO_MEMORY;
@@ -2642,13 +2642,13 @@ static NTSTATUS lsa_QuerySecret(struct dcesrv_call_state *dce_call, TALLOC_CTX *
return NT_STATUS_NO_MEMORY;
}
- /* Decrypt */
new_val = ldb_msg_find_ldb_val(res[0], "currentValue");
if (new_val && new_val->length) {
secret.data = new_val->data;
secret.length = new_val->length;
+ /* Encrypt */
crypt_secret = sess_encrypt_blob(mem_ctx, &secret, &session_key);
if (!crypt_secret.length) {
return NT_STATUS_NO_MEMORY;