From 4f25baecc14f977711ea5e3ddc226113e387fba3 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 10 May 2010 20:04:37 +0200 Subject: s4:password_hash LDB module - quiet a warning --- source4/dsdb/samdb/ldb_modules/password_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/dsdb/samdb/ldb_modules/password_hash.c') 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; -- cgit