]> git.sur5r.net Git - openldap/commitdiff
specifically check for NULL return from acl_get()
authorBen Collins <bcollins@openldap.org>
Wed, 13 Sep 2000 21:49:56 +0000 (21:49 +0000)
committerBen Collins <bcollins@openldap.org>
Wed, 13 Sep 2000 21:49:56 +0000 (21:49 +0000)
servers/slapd/acl.c

index b22ec970cf662dd24b9db1de21bcbabc748519ef..8079bdd15eddbf015d86a8c5fe23bf7b23d5f4f6 100644 (file)
@@ -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;