s3: libsmb: Make resolve_name_list() use internal_resolve_name_talloc().
authorJeremy Allison <jra@samba.org>
Wed, 26 Aug 2020 20:30:02 +0000 (13:30 -0700)
committerNoel Power <npower@samba.org>
Mon, 7 Sep 2020 13:23:42 +0000 (13:23 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/libsmb/namequery.c

index 06ebeaff2d1bfd3d6e495e650a95838504a4f30c..47e7af2b7d13f9781879594dbd232855a9702c63 100644 (file)
@@ -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;
 }