Changeset 77 for trunk/samba/source/nsswitch/wb_client.c
- Timestamp:
- Sep 30, 2007, 3:42:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/nsswitch/wb_client.c
r39 r77 8 8 9 9 This library is free software; you can redistribute it and/or 10 modify it under the terms of the GNU L ibraryGeneral Public10 modify it under the terms of the GNU Lesser General Public 11 11 License as published by the Free Software Foundation; either 12 version 2of the License, or (at your option) any later version.12 version 3 of the License, or (at your option) any later version. 13 13 14 14 This library is distributed in the hope that it will be useful, … … 17 17 Library General Public License for more details. 18 18 19 You should have received a copy of the GNU Library General Public 20 License along with this library; if not, write to the 21 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 22 Boston, MA 02111-1307, USA. 19 You should have received a copy of the GNU Lesser General Public License 20 along with this program. If not, see <http://www.gnu.org/licenses/>. 23 21 */ 24 22 … … 148 146 } 149 147 150 if ( (num_rids != 0) && (ridlist == NULL)) {148 if (ridlist == NULL) { 151 149 return False; 152 150 } … … 166 164 *domain_name = talloc_strdup(mem_ctx, response.data.domain_name); 167 165 168 if (num_rids) { 169 *names = TALLOC_ARRAY(mem_ctx, const char *, num_rids); 170 *types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_rids); 171 172 if ((*names == NULL) || (*types == NULL)) { 173 goto fail; 174 } 175 } else { 176 *names = NULL; 177 *types = NULL; 166 *names = TALLOC_ARRAY(mem_ctx, const char *, num_rids); 167 *types = TALLOC_ARRAY(mem_ctx, enum lsa_SidType, num_rids); 168 169 if ((*names == NULL) || (*types == NULL)) { 170 goto fail; 178 171 } 179 172
Note:
See TracChangeset
for help on using the changeset viewer.