mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
dsdb: Do not use free'd memory.
The msg has already been free'd at this point so we need to print the user_dn which gets assigned to msg->dn. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
dce3f1fc60
commit
016f49997c
@ -2339,7 +2339,7 @@ static NTSTATUS samdb_set_password_internal(struct ldb_context *ldb, TALLOC_CTX
|
||||
status = NT_STATUS_ACCESS_DENIED;
|
||||
} else if (ret != LDB_SUCCESS) {
|
||||
DEBUG(1, ("Failed to set password on %s: %s\n",
|
||||
ldb_dn_get_linearized(msg->dn),
|
||||
ldb_dn_get_linearized(user_dn),
|
||||
ldb_errstring(ldb)));
|
||||
status = NT_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user