summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-04-20 20:37:35 +0200
committerVolker Lendecke <vl@samba.org>2010-04-23 23:41:04 +0200
commit6eec46ec44480db77d16bbd3332b8b10306f64f0 (patch)
tree7a6058f5ad53e9155394c2b8d0911c52a80c41cf /source3/winbindd
parent7574347e68b258456179614d65ecb5549dfe97a5 (diff)
downloadsamba-6eec46ec44480db77d16bbd3332b8b10306f64f0.tar.gz
samba-6eec46ec44480db77d16bbd3332b8b10306f64f0.tar.bz2
samba-6eec46ec44480db77d16bbd3332b8b10306f64f0.zip
s3: replace some data_blob_talloc by data_blob_const
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_pam.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index ae7a363924..334187ca7b 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -2186,24 +2186,20 @@ enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domai
(unsigned long)state->pid, domain, user));
/* Change password */
- new_nt_password = data_blob_talloc(
- state->mem_ctx,
+ new_nt_password = data_blob_const(
state->request->data.chng_pswd_auth_crap.new_nt_pswd,
state->request->data.chng_pswd_auth_crap.new_nt_pswd_len);
- old_nt_hash_enc = data_blob_talloc(
- state->mem_ctx,
+ old_nt_hash_enc = data_blob_const(
state->request->data.chng_pswd_auth_crap.old_nt_hash_enc,
state->request->data.chng_pswd_auth_crap.old_nt_hash_enc_len);
if(state->request->data.chng_pswd_auth_crap.new_lm_pswd_len > 0) {
- new_lm_password = data_blob_talloc(
- state->mem_ctx,
+ new_lm_password = data_blob_const(
state->request->data.chng_pswd_auth_crap.new_lm_pswd,
state->request->data.chng_pswd_auth_crap.new_lm_pswd_len);
- old_lm_hash_enc = data_blob_talloc(
- state->mem_ctx,
+ old_lm_hash_enc = data_blob_const(
state->request->data.chng_pswd_auth_crap.old_lm_hash_enc,
state->request->data.chng_pswd_auth_crap.old_lm_hash_enc_len);
} else {