Remove unused talloc context from query_user_list rpc.
authorgd <gd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 27 Aug 2007 18:07:49 +0000 (18:07 +0000)
committergd <gd@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 27 Aug 2007 18:07:49 +0000 (18:07 +0000)
Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24711 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/nsswitch/winbindd_rpc.c

index ab192eca8ab96aa969a1e72768b6f5a0c751d3aa..1895622f5642974cffafab31f30cdf25518d4f81 100644 (file)
@@ -61,7 +61,6 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain,
        loop_count = 0;
 
        do {
-               TALLOC_CTX *ctx2;
                uint32 num_dom_users, j;
                uint32 max_entries, max_size;
                SAM_DISPINFO_CTR ctr;
@@ -70,9 +69,6 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain,
                ZERO_STRUCT( ctr );
                ZERO_STRUCT( info1 );
                ctr.sam.info1 = &info1;
-       
-               if (!(ctx2 = talloc_init("winbindd enum_users")))
-                       return NT_STATUS_NO_MEMORY;
 
                /* this next bit is copied from net_user_list_internal() */
 
@@ -93,7 +89,6 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain,
                                             *num_entries);
 
                if (!(*info)) {
-                       talloc_destroy(ctx2);
                        return NT_STATUS_NO_MEMORY;
                }
 
@@ -122,8 +117,6 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain,
                                    DOMAIN_GROUP_RID_USERS);
                }
 
-               talloc_destroy(ctx2);
-
        } while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
 
        return result;