dsdb: Fix CID 1034719 Evaluation order violation
authorVolker Lendecke <vl@samba.org>
Tue, 23 Jun 2015 12:53:39 +0000 (14:53 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 23 Jun 2015 20:12:09 +0000 (22:12 +0200)
We assigned lp_ctx twice...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/password_hash.c

index cd23ab7c86d0a6125174ac1afc1e5eaa740f3206..5defc1df483f70706aa78a5fef3f8346fe407098 100644 (file)
@@ -2227,9 +2227,8 @@ static int setup_io(struct ph_context *ac,
 { 
        const struct ldb_val *quoted_utf16, *old_quoted_utf16, *lm_hash, *old_lm_hash;
        struct ldb_context *ldb = ldb_module_get_ctx(ac->module);
-       struct loadparm_context *lp_ctx =
-               lp_ctx = talloc_get_type(ldb_get_opaque(ldb, "loadparm"),
-                                        struct loadparm_context);
+       struct loadparm_context *lp_ctx = talloc_get_type(
+               ldb_get_opaque(ldb, "loadparm"), struct loadparm_context);
        int ret;
 
        ZERO_STRUCTP(io);