From 74a81e6ba61ddc9a473b4c7c15fd7aae553b9b8b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 21 May 2004 00:13:16 +0000 Subject: r805: Fix to stop smbd hanging on missing group member from "Jianliang Lu" . Jeremy. (This used to be commit d5fb5ba9df9fc0f9167e76402c59a971f52e1b1f) --- source3/rpc_server/srv_samr_nt.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index eca0913c1c..ea631d7c85 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -3295,16 +3295,12 @@ static BOOL get_memberuids(gid_t gid, uid_t **uids, int *num) /* Secondary group members */ - gr = grp->gr_mem; - while ((*gr != NULL) && ((*gr)[0] != '\0')) { + for (gr = grp->gr_mem; (*gr != NULL) && ((*gr)[0] != '\0'); gr += 1) { struct passwd *pw = getpwnam(*gr); if (pw == NULL) continue; - add_uid_to_array_unique(pw->pw_uid, uids, num); - - gr += 1; } winbind_on(); -- cgit