summaryrefslogtreecommitdiff
path: root/source4/dsdb/common/util.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-09-06 11:08:04 +0200
committerJeremy Allison <jra@samba.org>2016-09-09 00:32:12 +0200
commit016f49997cddb7d0dcd8ea4a1ae721a105f6f62b (patch)
tree465999e06c6a1b535574508f13f3db3c3ca0c57e /source4/dsdb/common/util.c
parentdce3f1fc60bde8b54180b45abdcfaaa9beb8e416 (diff)
downloadsamba-016f49997cddb7d0dcd8ea4a1ae721a105f6f62b.tar.gz
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>
Diffstat (limited to 'source4/dsdb/common/util.c')
-rw-r--r--source4/dsdb/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 448b20ae040..d1777b3634e 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -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;
}