diff options
author | Günther Deschner <gd@samba.org> | 2007-08-27 18:07:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:15 -0500 |
commit | a380f2ce6a756d3743bd2075b7d8492ee0c74bda (patch) | |
tree | e435950fb116db025d95466e8cdee91300df0f91 | |
parent | b578db69e91a088f158c1cd78a71d00045fc1da6 (diff) | |
download | samba-a380f2ce6a756d3743bd2075b7d8492ee0c74bda.tar.gz samba-a380f2ce6a756d3743bd2075b7d8492ee0c74bda.tar.xz samba-a380f2ce6a756d3743bd2075b7d8492ee0c74bda.zip |
r24711: Remove unused talloc context from query_user_list rpc.
Guenther
(This used to be commit 5187157607c0688e718079fb351e144d431e9040)
-rw-r--r-- | source3/nsswitch/winbindd_rpc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index ab192eca8ab..1895622f564 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -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; |