From 931eca3051c6607014d5df45c35115fb1234ab45 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 10 Mar 2009 01:28:14 -0400 Subject: Fix bugs in functions dealing with groups Fix infinite loop within initgr functions. Fix min length check copy&paste error, was filtering valid groups if the name was short enough and the group had no members. --- sss_client/group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sss_client') diff --git a/sss_client/group.c b/sss_client/group.c index c340a2cc..66cec623 100644 --- a/sss_client/group.c +++ b/sss_client/group.c @@ -82,7 +82,7 @@ static int sss_nss_getgr_readrep(struct sss_nss_gr_rep *pr, uint32_t mem_num; int err; - if (*len < 21) { /* not enough space for data, bad packet */ + if (*len < 15) { /* not enough space for data, bad packet */ return EBADMSG; } -- cgit