Changeset 39 for trunk/samba/source/nsswitch/winbindd_cache.c
- Timestamp:
- May 27, 2007, 12:26:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/nsswitch/winbindd_cache.c
r30 r39 1777 1777 *alias_rids = NULL; 1778 1778 1779 (*alias_rids) = TALLOC_ARRAY(mem_ctx, uint32, *num_aliases); 1780 1781 if ((*num_aliases != 0) && ((*alias_rids) == NULL)) { 1782 centry_free(centry); 1783 return NT_STATUS_NO_MEMORY; 1779 if (*num_aliases) { 1780 (*alias_rids) = TALLOC_ARRAY(mem_ctx, uint32, *num_aliases); 1781 1782 if ((*alias_rids) == NULL) { 1783 centry_free(centry); 1784 return NT_STATUS_NO_MEMORY; 1785 } 1786 } else { 1787 (*alias_rids) = NULL; 1784 1788 } 1785 1789 … … 1943 1947 *num_domains = centry_uint32(centry); 1944 1948 1945 (*names) = TALLOC_ARRAY(mem_ctx, char *, *num_domains); 1946 (*alt_names) = TALLOC_ARRAY(mem_ctx, char *, *num_domains); 1947 (*dom_sids) = TALLOC_ARRAY(mem_ctx, DOM_SID, *num_domains); 1949 if (*num_domains) { 1950 (*names) = TALLOC_ARRAY(mem_ctx, char *, *num_domains); 1951 (*alt_names) = TALLOC_ARRAY(mem_ctx, char *, *num_domains); 1952 (*dom_sids) = TALLOC_ARRAY(mem_ctx, DOM_SID, *num_domains); 1948 1953 1949 if (! (*dom_sids) || ! (*names) || ! (*alt_names)) { 1950 smb_panic("trusted_domains out of memory"); 1951 } 1954 if (! (*dom_sids) || ! (*names) || ! (*alt_names)) { 1955 smb_panic("trusted_domains out of memory"); 1956 } 1957 } else { 1958 (*names) = NULL; 1959 (*alt_names) = NULL; 1960 (*dom_sids) = NULL; 1961 } 1952 1962 1953 1963 for (i=0; i<(*num_domains); i++) { … … 2131 2141 { 2132 2142 struct winbind_cache *cache; 2133 2143 2144 /* dont clear cached U/SID and UG/SID entries when we want to logon 2145 * offline - gd */ 2146 2147 if (lp_winbind_offline_logon()) { 2148 return; 2149 } 2150 2134 2151 if (!domain) 2135 2152 return;
Note:
See TracChangeset
for help on using the changeset viewer.