Changeset 39 for trunk/samba/source/nsswitch/winbindd_user.c
- Timestamp:
- May 27, 2007, 12:26:26 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/nsswitch/winbindd_user.c
r22 r39 632 632 struct getent_state *ent; 633 633 struct winbindd_pw *user_list; 634 int num_users, user_list_ndx = 0, i;634 int num_users, user_list_ndx; 635 635 636 636 DEBUG(3, ("[%5lu]: getpwent\n", (unsigned long)state->pid)); … … 646 646 647 647 num_users = MIN(MAX_GETPWENT_USERS, state->request.data.num_entries); 648 649 if (num_users == 0) { 650 request_error(state); 651 return; 652 } 648 653 649 654 if ((state->response.extra_data.data = SMB_MALLOC_ARRAY(struct winbindd_pw, num_users)) == NULL) { … … 667 672 /* Start sending back users */ 668 673 669 for ( i = 0; i < num_users; i++) {674 for (user_list_ndx = 0; user_list_ndx < num_users; ) { 670 675 struct getpwent_user *name_list = NULL; 671 676 uint32 result; … … 710 715 &user_list[user_list_ndx]); 711 716 712 ent->sam_entry_index++;713 714 717 /* Add user to return list */ 715 718 … … 724 727 DEBUG(1, ("could not lookup domain user %s\n", 725 728 name_list[ent->sam_entry_index].name)); 729 730 ent->sam_entry_index++; 731 726 732 } 727 733
Note:
See TracChangeset
for help on using the changeset viewer.