diff options
author | Jeremy Allison <jra@samba.org> | 2004-05-21 00:13:16 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-05-21 00:13:16 +0000 |
commit | 503011e451844f6747e1090bdd21e5a9beeff942 (patch) | |
tree | f504f375331f41c8bb59907d92eeada9dcdd7090 | |
parent | e6a8771197d14b95086f9ebe416d9028d4009847 (diff) | |
download | samba-503011e451844f6747e1090bdd21e5a9beeff942.tar.gz samba-503011e451844f6747e1090bdd21e5a9beeff942.tar.xz samba-503011e451844f6747e1090bdd21e5a9beeff942.zip |
r805: Fix to stop smbd hanging on missing group member from "Jianliang Lu" <j.lu@tiesse.com>.
Jeremy.
-rw-r--r-- | source/rpc_server/srv_samr_nt.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/rpc_server/srv_samr_nt.c b/source/rpc_server/srv_samr_nt.c index eca0913c1c2..ea631d7c851 100644 --- a/source/rpc_server/srv_samr_nt.c +++ b/source/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(); |