mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3: libsmb: Make resolve_name_list() use internal_resolve_name_talloc().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
parent
e18eb94f42
commit
505272a893
@ -3590,9 +3590,13 @@ NTSTATUS resolve_name_list(TALLOC_CTX *ctx,
|
||||
|
||||
sitename = sitename_fetch(ctx, lp_realm()); /* wild guess */
|
||||
|
||||
status = internal_resolve_name(name, name_type, sitename,
|
||||
&ss_list, &count,
|
||||
lp_name_resolve_order());
|
||||
status = internal_resolve_name_talloc(ctx,
|
||||
name,
|
||||
name_type,
|
||||
sitename,
|
||||
&ss_list,
|
||||
&count,
|
||||
lp_name_resolve_order());
|
||||
TALLOC_FREE(sitename);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
@ -3652,7 +3656,7 @@ NTSTATUS resolve_name_list(TALLOC_CTX *ctx,
|
||||
*p_num_entries = num_entries;
|
||||
*return_ss_arr = result_arr;
|
||||
done:
|
||||
SAFE_FREE(ss_list);
|
||||
TALLOC_FREE(ss_list);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user