From: Ben Collins Date: Wed, 13 Sep 2000 21:49:56 +0000 (+0000) Subject: specifically check for NULL return from acl_get() X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2019 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=810d3ce22461150ec8096416a83deacd5bebfa11;p=openldap specifically check for NULL return from acl_get() --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index b22ec970cf..8079bdd15e 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -154,7 +154,7 @@ access_allowed( a = NULL; count = 0; - while( a = acl_get( a, &count, be, op, e, desc, MAXREMATCHES, matches ) ) + while((a = acl_get( a, &count, be, op, e, desc, MAXREMATCHES, matches )) != NULL) { int i;