mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
dsdb/password_hash: don't double assign variables (CID 1363048, 1034720)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jul 6 13:56:17 UTC 2020 on sn-devel-184
This commit is contained in:
parent
9199541052
commit
8bd7669d8d
@ -2456,8 +2456,8 @@ static int setup_password_fields(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);
|
||||
talloc_get_type(ldb_get_opaque(ldb, "loadparm"),
|
||||
struct loadparm_context);
|
||||
int ret;
|
||||
|
||||
ret = setup_last_set_field(io);
|
||||
@ -2708,8 +2708,8 @@ static int check_password_restrictions(struct setup_password_fields_io *io, WERR
|
||||
struct ldb_context *ldb = ldb_module_get_ctx(io->ac->module);
|
||||
int ret;
|
||||
struct loadparm_context *lp_ctx =
|
||||
lp_ctx = talloc_get_type(ldb_get_opaque(ldb, "loadparm"),
|
||||
struct loadparm_context);
|
||||
talloc_get_type(ldb_get_opaque(ldb, "loadparm"),
|
||||
struct loadparm_context);
|
||||
|
||||
*werror = WERR_INVALID_PARAMETER;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user