summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-05-01 08:43:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:55 -0500
commite2633be3135a8ad47161d9e0325321b3db1771a8 (patch)
treeed48fba2105598dc34312ac0e703d266a92349be /source4
parent037a3e0fc22730c08efb65583a3837419d7aaa0f (diff)
downloadsamba-e2633be3135a8ad47161d9e0325321b3db1771a8.tar.gz
samba-e2633be3135a8ad47161d9e0325321b3db1771a8.tar.bz2
samba-e2633be3135a8ad47161d9e0325321b3db1771a8.zip
r22627: fix crash msgs_tmp isn't always initialized
and we don't need an extra allocated string anyway metze (This used to be commit 44c27b2fe6f130332d9f7c6bdd901eb025aa3eff)
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/auth_sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/auth_sam.c b/source4/auth/auth_sam.c
index 9872031653..9f66740012 100644
--- a/source4/auth/auth_sam.c
+++ b/source4/auth/auth_sam.c
@@ -112,7 +112,7 @@ static NTSTATUS authsam_search_account(TALLOC_CTX *mem_ctx, struct ldb_context *
}
ret_domain = gendb_search(sam_ctx, mem_ctx, partitions_basedn, &msgs_domain_ref, domain_ref_attrs,
- "(nCName=%s)", ldb_dn_alloc_linearized(msgs_tmp, domain_dn));
+ "(nCName=%s)", ldb_dn_get_linearized(domain_dn));
if (ret_domain == -1) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}