]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:password_hash LDB module - quiet a warning
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 10 May 2010 18:04:37 +0000 (20:04 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 10 May 2010 18:04:37 +0000 (20:04 +0200)
source4/dsdb/samdb/ldb_modules/password_hash.c

index 7717b03621a8f8fe809c68b7f9cccff36b18dc1b..a1ffdc0e921c0865bbc5e11ebf6ea6329a896502 100644 (file)
@@ -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;