]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix parsing of descrete attributes.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 21 Oct 1999 18:27:23 +0000 (18:27 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 21 Oct 1999 18:27:23 +0000 (18:27 +0000)
servers/slapd/aclparse.c

index 5b9363714c8e8258345444d1679c35832b0bc901..362583dbb97a3d3fdeb2c2146dbacb4851e9b633 100644 (file)
@@ -576,16 +576,16 @@ str2accessmask( const char *str )
                        if( TOLOWER(str[i]) == 'w' ) {
                                ACL_PRIV_SET(mask, ACL_PRIV_WRITE);
 
-                       } else if( TOLOWER(str[0]) == 'r' ) {
+                       } else if( TOLOWER(str[i]) == 'r' ) {
                                ACL_PRIV_SET(mask, ACL_PRIV_READ);
 
-                       } else if( TOLOWER(str[0]) == 's' ) {
+                       } else if( TOLOWER(str[i]) == 's' ) {
                                ACL_PRIV_SET(mask, ACL_PRIV_SEARCH);
 
-                       } else if( TOLOWER(str[0]) == 'c' ) {
+                       } else if( TOLOWER(str[i]) == 'c' ) {
                                ACL_PRIV_SET(mask, ACL_PRIV_COMPARE);
 
-                       } else if( TOLOWER(str[0]) == 'x' ) {
+                       } else if( TOLOWER(str[i]) == 'x' ) {
                                ACL_PRIV_SET(mask, ACL_PRIV_AUTH);
 
                        } else {