summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-10 20:04:37 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-05-10 20:04:37 +0200
commit4f25baecc14f977711ea5e3ddc226113e387fba3 (patch)
tree961f802bee8c9493d4f61a8ed3ca08ea774c5e84
parentfa87027592f71179c22f132e375038217bc9d36a (diff)
downloadsamba-4f25baecc14f977711ea5e3ddc226113e387fba3.tar.gz
samba-4f25baecc14f977711ea5e3ddc226113e387fba3.tar.bz2
samba-4f25baecc14f977711ea5e3ddc226113e387fba3.zip
s4:password_hash LDB module - quiet a warning
-rw-r--r--source4/dsdb/samdb/ldb_modules/password_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c
index 7717b03621..a1ffdc0e92 100644
--- a/source4/dsdb/samdb/ldb_modules/password_hash.c
+++ b/source4/dsdb/samdb/ldb_modules/password_hash.c
@@ -2690,7 +2690,7 @@ static int password_hash_mod_do_mod(struct ph_context *ac)
/* Get the old password from the database */
status = samdb_result_passwords(io.ac,
ldb_get_opaque(ldb, "loadparm"),
- searched_msg,
+ discard_const_p(struct ldb_message, searched_msg),
&io.o.lm_hash, &io.o.nt_hash);
if (!NT_STATUS_IS_OK(status)) {
return LDB_ERR_OPERATIONS_ERROR;