diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-08 20:37:30 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-08 21:04:32 +0100 |
commit | 8cda1d9797cba02c3db8f996581bb11ffa0d02fa (patch) | |
tree | e0828181806a018f3c516e9af602b0ec4c6a8514 | |
parent | a200bac0937cb2b11147c29b6b490e52a856580f (diff) | |
download | samba-8cda1d9797cba02c3db8f996581bb11ffa0d02fa.tar.gz samba-8cda1d9797cba02c3db8f996581bb11ffa0d02fa.tar.bz2 samba-8cda1d9797cba02c3db8f996581bb11ffa0d02fa.zip |
s3: "ctx" is not needed in idmap_nss_unixids_to_sids
-rw-r--r-- | source3/winbindd/idmap_nss.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/winbindd/idmap_nss.c b/source3/winbindd/idmap_nss.c index 5d5bd8c65e..941b4d087d 100644 --- a/source3/winbindd/idmap_nss.c +++ b/source3/winbindd/idmap_nss.c @@ -43,7 +43,6 @@ static NTSTATUS idmap_nss_int_init(struct idmap_domain *dom, static NTSTATUS idmap_nss_unixids_to_sids(struct idmap_domain *dom, struct id_map **ids) { - TALLOC_CTX *ctx; int i; /* initialize the status to avoid suprise */ @@ -51,12 +50,6 @@ static NTSTATUS idmap_nss_unixids_to_sids(struct idmap_domain *dom, struct id_ma ids[i]->status = ID_UNKNOWN; } - ctx = talloc_new(dom); - if ( ! ctx) { - DEBUG(0, ("Out of memory!\n")); - return NT_STATUS_NO_MEMORY; - } - for (i = 0; ids[i]; i++) { struct passwd *pw; struct group *gr; @@ -122,9 +115,6 @@ static NTSTATUS idmap_nss_unixids_to_sids(struct idmap_domain *dom, struct id_ma break; } } - - - talloc_free(ctx); return NT_STATUS_OK; } |