1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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)
This commit is contained in:
Stefan Metzmacher 2007-05-01 08:43:52 +00:00 committed by Gerald (Jerry) Carter
parent 037a3e0fc2
commit e2633be313

View File

@ -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;
}