samba-cvs.cvs
[Top] [All Lists]

[SCM] Samba Shared Repository - branch master updated

Subject: [SCM] Samba Shared Repository - branch master updated
From: Matthias Dieter Wallnöfer
Date: Thu, 4 Mar 2010 15:43:35 -0600 CST
The branch, master has been updated
       via  13b1bf5... s4:auth/sam.c - change base context for the "tmp_ctx" 
context in "authsam_expand_nested_groups"
      from  3d94b28... s4:ldap.py - give the "primaryGroupToken" test a better 
name

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 13b1bf5d47cb764365f6a14e35a4aa55b9a7e355
Author: Matthias Dieter Wallnöfer <mwallnoefer@xxxxxxxx>
Date:   Thu Mar 4 22:18:10 2010 +0100

    s4:auth/sam.c - change base context for the "tmp_ctx" context in 
"authsam_expand_nested_groups"
    
    Better use the "res_sids_ctx" as base context for the "tmp_ctx" and not the
    long-living "sam_ctx"/"ldb" context to prevent memory leaks.

-----------------------------------------------------------------------

Summary of changes:
 source4/auth/sam.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/auth/sam.c b/source4/auth/sam.c
index 20efc36..fc3e810 100644
--- a/source4/auth/sam.c
+++ b/source4/auth/sam.c
@@ -336,7 +336,7 @@ _PUBLIC_ NTSTATUS authsam_expand_nested_groups(struct 
ldb_context *sam_ctx,
                ++(*num_res_sids);
        }
 
-       tmp_ctx = talloc_new(sam_ctx);
+       tmp_ctx = talloc_new(res_sids_ctx);
 
        ret = gendb_search(sam_ctx, tmp_ctx, NULL, &res, attrs,
                "objectSid=%s", ldap_encode_ndr_dom_sid(tmp_ctx, sid));


-- 
Samba Shared Repository

<Prev in Thread] Current Thread [Next in Thread>