dsdb: Fix CID 1364520 Incorrect expression (EVALUATION_ORDER)
authorVolker Lendecke <vl@samba.org>
Tue, 26 Jul 2016 10:42:49 +0000 (12:42 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 26 Jul 2016 21:48:19 +0000 (23:48 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Jul 26 23:48:19 CEST 2016 on sn-devel-144

source4/dsdb/samdb/ldb_modules/password_hash.c

index a6131e2880bb62a537dae02fade0107b5ec56d74..bb8679c79aad915ddd568f96368e5d6aa3b02397 100644 (file)
@@ -2215,9 +2215,8 @@ static int setup_password_fields(struct setup_password_fields_io *io)
 static int setup_smartcard_reset(struct setup_password_fields_io *io)
 {
        struct ldb_context *ldb = ldb_module_get_ctx(io->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);
        struct supplementalCredentialsBlob scb = { .__ndr_size = 0 };
        enum ndr_err_code ndr_err;